-
Notifications
You must be signed in to change notification settings - Fork 759
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
1 parent
7c05e15
commit b73bb7a
Showing
15 changed files
with
179 additions
and
56 deletions.
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
apply plugin: plugin.javaLibrary | ||
apply from: '../publish.gradle' | ||
|
||
compileJava { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
} | ||
|
||
apply from: '../bintray.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,3 +1,3 @@ | ||
POM_NAME=AndServer | ||
POM_NAME=andserver-annotation | ||
POM_ARTIFACT_ID=annotation | ||
POM_PACKAGING=jar |
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
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,3 +1,3 @@ | ||
POM_NAME=AndServer | ||
POM_NAME=andserver-api | ||
POM_ARTIFACT_ID=api | ||
POM_PACKAGING=aar |
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
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,133 @@ | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'com.jfrog.bintray' | ||
|
||
group = PROJECT_GROUP | ||
version = PROJECT_VERSION | ||
|
||
afterEvaluate { project -> | ||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
repository(url: mavenLocal().getUrl()) | ||
} | ||
} | ||
} | ||
} | ||
|
||
def getBintrayUsername() { | ||
return hasProperty('BINTRAY_USERNAME') ? BINTRAY_USERNAME : "" | ||
} | ||
|
||
def getBintrayApiKey() { | ||
return hasProperty('BINTRAY_API_KEY') ? BINTRAY_API_KEY : "" | ||
} | ||
|
||
def getGPGPassword() { | ||
return hasProperty('BINTRAY_GPG_PASSWORD') ? BINTRAY_GPG_PASSWORD : "" | ||
} | ||
|
||
def getSonatypeUserName() { | ||
return hasProperty('SONATYPE_USERNAME') ? SONATYPE_USERNAME : "" | ||
} | ||
|
||
def getSonatypePassword() { | ||
return hasProperty('SONATYPE_PASSWORD') ? SONATYPE_PASSWORD : "" | ||
} | ||
|
||
bintray { | ||
user = getBintrayUsername() | ||
key = getBintrayApiKey() | ||
|
||
configurations = ['archives'] | ||
pkg { | ||
repo = 'maven' | ||
name = POM_NAME | ||
desc = POM_DESCRIPTION | ||
websiteUrl = POM_URL | ||
vcsUrl = POM_GIT_URL | ||
licenses = [POM_LICENCE_NAME] | ||
publish = true | ||
publicDownloadNumbers = true | ||
version { | ||
desc = "${POM_NAME} ${PROJECT_VERSION}." | ||
gpg { | ||
sign = true | ||
passphrase = getGPGPassword() | ||
} | ||
mavenCentralSync { | ||
sync = true | ||
user = getSonatypeUserName() | ||
password = getSonatypePassword() | ||
close = '1' | ||
} | ||
} | ||
} | ||
} | ||
|
||
install { | ||
repositories.mavenInstaller { | ||
pom { | ||
project { | ||
packaging POM_PACKAGING | ||
name POM_NAME | ||
url POM_URL | ||
licenses { | ||
license { | ||
name POM_LICENCE_NAME | ||
url POM_LICENCE_URL | ||
} | ||
} | ||
developers { | ||
developer { | ||
id POM_DEVELOPER_ID | ||
name POM_DEVELOPER_ID | ||
email POM_DEVELOPER_EMAIL | ||
} | ||
} | ||
scm { | ||
url POM_URL | ||
connection POM_GIT_URL | ||
developerConnection POM_GIT_URL | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
if (project.getPlugins().hasPlugin("com.android.library")) { | ||
task sourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from android.sourceSets.main.java.source | ||
} | ||
task javadoc(type: Javadoc) { | ||
source = android.sourceSets.main.java.source | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
failOnError false | ||
} | ||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
} else { | ||
task sourcesJar(type: Jar, dependsOn: classes) { | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
} | ||
|
||
if (JavaVersion.current().isJava8Compatible()) { | ||
allprojects { | ||
tasks.withType(Javadoc) { | ||
options.addStringOption('Xdoclint:none', '-quiet') | ||
} | ||
} | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar | ||
archives javadocJar | ||
} |
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
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
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 |
---|---|---|
|
@@ -6,13 +6,12 @@ PROJECT_VERSION=2.1.2 | |
POM_DESCRIPTION=Android web server. | ||
|
||
POM_URL=https://github.com/yanzhenjie/AndServer/ | ||
POM_SCM_URL=https://github.com/yanzhenjie/AndServer/ | ||
POM_SCM_CONNECTION=scm:git:git://github.com/yanzhenjie/AndServer.git | ||
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/yanzhenjie/AndServer.git | ||
POM_GIT_URL=git://github.com/yanzhenjie/AndServer.git | ||
|
||
POM_LICENCE_NAME=The Apache Software License, Version 2.0 | ||
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt | ||
POM_LICENCE_DIST=repo | ||
|
||
POM_DEVELOPER_ID=yanzhenjie | ||
POM_DEVELOPER_NAME=Zhenjie Yan | ||
POM_DEVELOPER_NAME=Zhenjie Yan | ||
POM_DEVELOPER_EMAIL[email protected] |
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
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,3 +1,3 @@ | ||
POM_NAME=AndServer | ||
POM_NAME=andserver-plugin | ||
POM_ARTIFACT_ID=plugin | ||
POM_PACKAGING=jar |
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
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,3 +1,3 @@ | ||
POM_NAME=AndServer | ||
POM_NAME=andserver-processor | ||
POM_ARTIFACT_ID=processor | ||
POM_PACKAGING=jar |
This file was deleted.
Oops, something went wrong.
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