-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dingo-release] bump release version to dingo-v0.4.1
- Loading branch information
Showing
6 changed files
with
179 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,13 +21,26 @@ plugins { | |
id 'maven-publish' | ||
} | ||
|
||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
dependencies { | ||
implementation group: 'org.apache.calcite.avatica', name: 'avatica-core', version: 'avatica'.v() | ||
implementation project(':dingo-common') | ||
implementation project(':dingo-net-api') | ||
implementation project(':dingo-net-netty') | ||
} | ||
|
||
task javadocJar(type: Jar) { | ||
classifier = 'javadoc' | ||
from javadoc | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
task fatJar(type: Jar) { | ||
classifier 'all' | ||
from( | ||
|
@@ -40,10 +53,6 @@ task fatJar(type: Jar) { | |
exclude "META-INF/*.RSA" | ||
} | ||
|
||
tasks.named("build") { x -> | ||
x.finalizedBy("fatJar") | ||
} | ||
|
||
fatJar.dependsOn([ | ||
':dingo-common:jar', | ||
':dingo-net-api:jar', | ||
|
@@ -53,21 +62,20 @@ fatJar.dependsOn([ | |
':dingo-expr:dingo-expr-json-runtime:jar' | ||
]) | ||
|
||
tasks.named("build") { x -> | ||
x.finalizedBy("fatJar") | ||
} | ||
|
||
publishing { | ||
repositories { | ||
maven { | ||
name = "GitHubPackages" | ||
url = uri("https://maven.pkg.github.com/dingodb/dingo") | ||
credentials { | ||
username = System.getenv("GITHUB_ACTOR") | ||
password = System.getenv("GITHUB_TOKEN") | ||
} | ||
} | ||
maven { | ||
name = "OSSRH" | ||
def releasesRepoUrl = "https://s01.oss.sonatype.org/content/repositories/releases/" | ||
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/" | ||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl | ||
/** | ||
* will manually release the artifactory | ||
*/ | ||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : ""; | ||
credentials { | ||
username = System.getenv("MAVEN_USERNAME") | ||
password = System.getenv("MAVEN_TOKEN") | ||
|
@@ -79,7 +87,64 @@ publishing { | |
maven(MavenPublication) { | ||
groupId = 'io.dingodb' | ||
artifactId = 'dingo-driver-client' | ||
artifacts = [ fatJar ] | ||
artifacts = [ fatJar, sourcesJar, javadocJar ] | ||
} | ||
} | ||
} | ||
|
||
artifacts { | ||
archives javadocJar, sourcesJar | ||
} | ||
|
||
project.gradle.taskGraph.whenReady { graph -> | ||
project.tasks.findAll().forEach { task -> | ||
if (task.name.contains("signArchives")) { | ||
task.enabled = false | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
sign configurations.archives | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
pom.project { | ||
name 'dingo-driver-client' | ||
packaging 'jar' | ||
// optionally artifactId can be defined here | ||
description 'A driver client for dingo cluster' | ||
url 'http://www.dingodb.datacanvas.com/' | ||
|
||
scm { | ||
connection 'scm:svn:http://foo.googlecode.com/svn/trunk/' | ||
developerConnection 'scm:svn:https://foo.googlecode.com/svn/trunk/' | ||
url 'http://foo.googlecode.com/svn/trunk/' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'The Apache License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'dingodb' | ||
name 'DingoDB develop team' | ||
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 |
---|---|---|
|
@@ -5,6 +5,9 @@ plugins { | |
id 'maven-publish' | ||
} | ||
|
||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
dependencies { | ||
implementation group: 'org.projectlombok', name: 'lombok', version: 'lombok'.v() | ||
implementation group: 'org.apache.commons', name: 'commons-lang3', version: 'commons-lang3'.v() | ||
|
@@ -58,23 +61,44 @@ tasks.named("build") { x -> | |
x.finalizedBy("fatJar") | ||
} | ||
|
||
task javadocJar(type: Jar) { | ||
classifier = 'javadoc' | ||
from javadoc | ||
} | ||
|
||
publishing { | ||
repositories { | ||
maven { | ||
name = "GitHubPackages" | ||
url = uri("https://maven.pkg.github.com/dingodb/dingo") | ||
credentials { | ||
username = System.getenv("GITHUB_ACTOR") | ||
password = System.getenv("GITHUB_TOKEN") | ||
} | ||
task sourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
artifacts { | ||
archives javadocJar, sourcesJar | ||
} | ||
|
||
project.gradle.taskGraph.whenReady { graph -> | ||
project.tasks.findAll().forEach { task -> | ||
if (task.name.contains("signArchives")) { | ||
task.enabled = false | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
sign configurations.archives | ||
} | ||
|
||
publishing { | ||
repositories { | ||
maven { | ||
name = "OSSRH" | ||
def releasesRepoUrl = "https://s01.oss.sonatype.org/content/repositories/releases/" | ||
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/" | ||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl | ||
|
||
/** | ||
* will manually release the artifactory | ||
*/ | ||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : ""; | ||
|
||
credentials { | ||
username = System.getenv("MAVEN_USERNAME") | ||
password = System.getenv("MAVEN_TOKEN") | ||
|
@@ -86,7 +110,48 @@ publishing { | |
maven(MavenPublication) { | ||
groupId = 'io.dingodb' | ||
artifactId = 'dingo-sdk' | ||
artifacts = [ fatJar ] | ||
artifacts = [ fatJar, javadocJar, sourcesJar ] | ||
} | ||
} | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
pom.project { | ||
name 'dingo-sdk' | ||
packaging 'jar' | ||
// optionally artifactId can be defined here | ||
description 'A sdk library to do operation on dingo cluster' | ||
url 'http://www.dingodb.datacanvas.com/' | ||
|
||
scm { | ||
connection 'scm:svn:http://foo.googlecode.com/svn/trunk/' | ||
developerConnection 'scm:svn:https://foo.googlecode.com/svn/trunk/' | ||
url 'http://foo.googlecode.com/svn/trunk/' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'The Apache License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'dingodb' | ||
name 'DingoDB develop team' | ||
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