-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
134 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
// Start https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
group = publishedGroupId // Maven Group ID for the artifact | ||
install { | ||
repositories.mavenInstaller { | ||
// This generates POM.xml with proper parameters | ||
pom { | ||
project { | ||
packaging 'aar' | ||
groupId publishedGroupId | ||
artifactId artifact | ||
|
||
// Add your description here | ||
name libraryName | ||
description libraryDescription | ||
url siteUrl | ||
|
||
// Set your license | ||
licenses { | ||
license { | ||
name licenseName | ||
url licenseUrl | ||
} | ||
} | ||
developers { | ||
developer { | ||
id developerId | ||
name developerName | ||
email developerEmail | ||
} | ||
} | ||
scm { | ||
connection gitUrl | ||
developerConnection gitUrl | ||
url siteUrl | ||
|
||
} | ||
} | ||
} | ||
} | ||
} | ||
// End https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle | ||
|
||
// Start https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle | ||
// (modified to use system property instead of property file) | ||
apply plugin: 'com.jfrog.bintray' | ||
|
||
version = libraryVersion | ||
|
||
if (project.hasProperty("android")) { // Android libraries | ||
task sourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from android.sourceSets.main.java.srcDirs | ||
} | ||
|
||
task javadoc(type: Javadoc) { | ||
source = android.sourceSets.main.java.srcDirs | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
} | ||
} else { // Java libraries | ||
task sourcesJar(type: Jar, dependsOn: classes) { | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
|
||
artifacts { | ||
archives javadocJar | ||
archives sourcesJar | ||
} | ||
|
||
bintray { | ||
user = System.getenv('BINTRAY_USERNAME') | ||
key = System.getenv('BINTRAY_API_KEY') | ||
|
||
configurations = ['archives'] | ||
pkg { | ||
repo = bintrayRepo | ||
name = bintrayName | ||
userOrg = bintrayUserOrg | ||
desc = libraryDescription | ||
websiteUrl = siteUrl | ||
vcsUrl = gitUrl | ||
licenses = allLicenses | ||
publish = true | ||
publicDownloadNumbers = true | ||
version { | ||
desc = libraryDescription | ||
gpg { | ||
sign = false //Determines whether to GPG sign the files. The default is false | ||
// passphrase = properties.getProperty("bintray.gpg.password") | ||
} | ||
} | ||
} | ||
} | ||
// End https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,35 @@ | ||
plugins { | ||
id "com.jfrog.bintray" version "1.7" | ||
id "com.github.dcendents.android-maven" version "1.5" | ||
} | ||
|
||
apply plugin: 'java' | ||
|
||
ext { | ||
bintrayRepo = 'maven' | ||
bintrayName = 'jelf' | ||
bintrayUserOrg = 'fornwall' | ||
|
||
publishedGroupId = 'net.fornwall.jelf' | ||
libraryName = 'JElf' | ||
artifact = 'jelf' | ||
|
||
libraryDescription = 'ELF parsing library in java' | ||
|
||
siteUrl = 'https://github.com/fornwall/jelf' | ||
gitUrl = 'https://github.com/fornwall/jelf.git' | ||
|
||
libraryVersion = '0.1' | ||
|
||
developerId = 'fornwall' | ||
developerName = 'Fredrik Fornwall' | ||
developerEmail = '[email protected]' | ||
|
||
licenseName = 'MIT License' | ||
licenseUrl = 'https://opensource.org/licenses/MIT' | ||
allLicenses = ['MIT'] | ||
} | ||
|
||
repositories { | ||
jcenter() | ||
} | ||
|
@@ -13,3 +43,5 @@ test { | |
println "Test ${desc.name} [${desc.className}] result: ${result.resultType}" | ||
} | ||
} | ||
|
||
apply from: 'bintray-upload.gradle' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters