forked from keenlabs/KeenClient-Java
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update publish task * Upgrade jackson 2.17.0 and other test libs
- Loading branch information
1 parent
c1f0820
commit 876ebc6
Showing
7 changed files
with
100 additions
and
129 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
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 |
---|---|---|
|
@@ -4,9 +4,9 @@ VERSION_NAME=3.0.0 | |
VERSION_CODE=6 | ||
GROUP=com.treasuredata | ||
|
||
POM_URL=www.keen.io | ||
POM_ORG_NAME=Keen IO | ||
POM_ORG_URL=http://www.keen.io | ||
POM_URL=www.treasuredata.com/ | ||
POM_ORG_NAME=Treasure Data | ||
POM_ORG_URL=https://www.treasuredata.com/ | ||
POM_SCM_URL=https://github.com/treasure-data/KeenClient-java.git | ||
POM_SCM_CONNECTION=scm:[email protected]:treasure-data/KeenClient-java.git | ||
POM_SCM_DEV_CONNECTION=scm:[email protected]:treasure-data/KeenClient-java.git | ||
|
@@ -16,3 +16,6 @@ POM_LICENSE_DIST=repo | |
POM_DEVELOPER_ID=keenlabs | ||
POM_DEVELOPER_NAME=Keen IO | ||
POM_DEVELOPER_EMAIL= | ||
POM_DEVELOPER_ID_TD=treasuredata | ||
POM_DEVELOPER_NAME_TD=Treasure Data | ||
POM_DEVELOPER_EMAIL_TD= |
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,113 +1,76 @@ | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'signing' | ||
|
||
//simple settings | ||
project.afterEvaluate { | ||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
//setGroupId groupId | ||
|
||
setGroupId GROUP | ||
//setArtifactId artifactId | ||
setArtifactId POM_ARTIFACT_ID | ||
version VERSION_NAME | ||
|
||
from components.java | ||
// artifact bundleDebugAar | ||
artifact javadocJar | ||
artifact sourcesJar | ||
|
||
pom { | ||
name = POM_NAME | ||
packaging = POM_PACKAGING | ||
description = POM_DESCRIPTION | ||
url = POM_URL | ||
|
||
organization { | ||
name = POM_ORG_NAME | ||
url = POM_ORG_URL | ||
} | ||
|
||
scm { | ||
url = POM_SCM_URL | ||
connection = POM_SCM_CONNECTION | ||
developerConnection = POM_SCM_DEV_CONNECTION | ||
} | ||
|
||
licenses { | ||
license { | ||
name = POM_LICENSE_NAME | ||
url = POM_LICENSE_URL | ||
distribution = POM_LICENSE_DIST | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id = POM_DEVELOPER_ID | ||
name = POM_DEVELOPER_NAME | ||
email = POM_DEVELOPER_EMAIL | ||
} | ||
|
||
/* add a dependency into generated .pom file | ||
pom.withXml { | ||
def dependenciesNode = asNode().appendNode('dependencies') | ||
def dependencyNode = dependenciesNode.appendNode('dependency') | ||
dependencyNode.appendNode('groupId', 'com.company') | ||
dependencyNode.appendNode('artifactId', 'HelloWorld-core') | ||
dependencyNode.appendNode('version', '1.1') | ||
developer { | ||
id = POM_DEVELOPER_ID_TD | ||
name = POM_DEVELOPER_NAME_TD | ||
email = POM_DEVELOPER_EMAIL_TD | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
maven { | ||
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' | ||
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots' | ||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl | ||
credentials { | ||
username findProperty('sonatypeUsername') | ||
password findProperty('sonatypePassword') | ||
} | ||
} | ||
} | ||
*/ | ||
} | ||
} | ||
} | ||
|
||
// signing { | ||
// sign publishing.publications.mavenJava | ||
// } | ||
signing { | ||
sign publishing.publications.mavenJava | ||
} | ||
} | ||
|
||
|
||
//apply plugin: 'maven' | ||
//apply plugin: 'signing' | ||
|
||
//def isReleaseBuild() { | ||
// return !version.endsWith("SNAPSHOT") | ||
//} | ||
// | ||
//def sonatypeRepositoryUrl | ||
//if (isReleaseBuild()) { | ||
// sonatypeRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
//} else { | ||
// sonatypeRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/" | ||
//} | ||
// | ||
//uploadArchives.repositories.mavenDeployer { | ||
// beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
// | ||
// pom.artifactId = POM_ARTIFACT_ID | ||
// pom.groupId = GROUP | ||
// pom.version = VERSION_NAME | ||
// | ||
// if (project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')) { | ||
// repository(url: sonatypeRepositoryUrl) { | ||
// authentication(userName: project.sonatypeUsername, password: project.sonatypePassword) | ||
// } | ||
// } | ||
// | ||
// pom.project { | ||
// name POM_NAME | ||
// packaging POM_PACKAGING | ||
// description POM_DESCRIPTION | ||
// url POM_URL | ||
// | ||
// organization { | ||
// name POM_ORG_NAME | ||
// url POM_ORG_URL | ||
// } | ||
// | ||
// scm { | ||
// url POM_SCM_URL | ||
// connection POM_SCM_CONNECTION | ||
// developerConnection POM_SCM_DEV_CONNECTION | ||
// } | ||
// | ||
// licenses { | ||
// license { | ||
// name POM_LICENSE_NAME | ||
// url POM_LICENSE_URL | ||
// distribution POM_LICENSE_DIST | ||
// } | ||
// } | ||
// | ||
// developers { | ||
// developer { | ||
// id POM_DEVELOPER_ID | ||
// name POM_DEVELOPER_NAME | ||
// email POM_DEVELOPER_EMAIL | ||
// } | ||
// } | ||
// } | ||
// | ||
// // The Java and Android projects depend on Core during build, but before packaging the Core | ||
// // classes are automatically included into the JARs. To prevent duplication of those classes, | ||
// // remove the dependency on Core from the POM files. | ||
// pom.whenConfigured { p -> | ||
// p.dependencies.removeAll { | ||
// it.artifactId.equals("keen-client-java-core") | ||
// } | ||
// } | ||
//} | ||
|
||
//signing { | ||
// required { | ||
// isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") | ||
// } | ||
// sign configurations.archives | ||
//} |
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,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |