-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- enables concurrent releases - avoid unnecessary version bump commits - enables using higher version of Gradle - more info: https://github.com/mockito/shipkit/blob/master/docs/design-specs/future-shipkit.md - removed read-only token from checked-in files (even though it is read read-only, it should not be exposed to unexpected users/bots)
- Loading branch information
1 parent
a80cad7
commit 230e688
Showing
11 changed files
with
176 additions
and
64 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
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,4 +1,4 @@ | ||
apply plugin: 'java' | ||
apply from: "$rootDir/gradle/java-publication.gradle" | ||
|
||
dependencies { | ||
compile deps.'gson' | ||
|
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 |
---|---|---|
@@ -0,0 +1,126 @@ | ||
apply plugin: "java" | ||
apply plugin: "maven-publish" | ||
apply plugin: "com.jfrog.bintray" | ||
|
||
def licenseSpec = copySpec { | ||
from project.rootDir | ||
include "LICENSE" | ||
} | ||
|
||
task sourcesJar(type: Jar, dependsOn: classes) { | ||
classifier 'sources' | ||
from sourceSets.main.allSource | ||
with licenseSpec | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier 'javadoc' | ||
from tasks.javadoc | ||
with licenseSpec | ||
} | ||
|
||
jar { | ||
with licenseSpec | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar | ||
archives javadocJar | ||
} | ||
|
||
//Gradle Maven publishing plugin configuration (https://docs.gradle.org/current/userguide/publishing_maven.html) | ||
apply plugin: "maven-publish" | ||
publishing { | ||
publications { | ||
javaLibrary(MavenPublication) { | ||
//name of the publication | ||
from components.java | ||
artifact sourcesJar | ||
artifact javadocJar | ||
|
||
artifactId = project.archivesBaseName | ||
|
||
pom { | ||
name = artifactId | ||
description = "A library for analyzing, processing, and rewriting views defined in the Hive Metastore, and sharing them across multiple execution engines" | ||
|
||
url = "https://github.com/linkedin/coral" | ||
licenses { | ||
license { | ||
name = 'The MIT License' | ||
url = 'https://github.com/linkedin/coral/blob/master/LICENSE' | ||
distribution = 'repo' | ||
} | ||
} | ||
developers { | ||
[ | ||
'wmoustafa:Walaa Eldin Moustafa', | ||
'khaitranq:Khai Tranh', | ||
'funcheetah:Wenye Zhang', | ||
'shardulm94:Shardul Mahadik', | ||
'hotsushi:Sushant Raikar' | ||
].each { devData -> | ||
developer { | ||
def devInfo = devData.split(':') | ||
id = devInfo[0] | ||
name = devInfo[1] | ||
url = 'https://github.com/' + devInfo[0] | ||
roles = ["Core developer"] | ||
} | ||
} | ||
} | ||
scm { | ||
url = 'https://github.com/linkedin/coral.git' | ||
} | ||
issueManagement { | ||
url = 'https://github.com/linkedin/coral/issues' | ||
system = 'GitHub issues' | ||
} | ||
ciManagement { | ||
url = 'https://travis-ci.com/linkedin/coral' | ||
system = 'Travis CI' | ||
} | ||
} | ||
} | ||
} | ||
|
||
//useful for testing - running "publish" will create artifacts/pom in a local dir | ||
repositories { maven { url = "$rootProject.buildDir/repo" } } | ||
} | ||
|
||
//fleshes out problems with Maven pom generation when building | ||
tasks.build.dependsOn("publishJavaLibraryPublicationToMavenLocal") | ||
|
||
//Bintray configuration is handled by JFrog Bintray Gradle Plugin | ||
//For reference see the official documentation: https://github.com/bintray/gradle-bintray-plugin | ||
bintray { | ||
user = 'lnkd-apa' | ||
// The Bintray API token is required to publish artifacts to Bintray | ||
// Ensure that the release machine or Travis CI has this env variable exported | ||
key = System.getenv("BINTRAY_API_KEY") | ||
publish = true //can be changed to 'false' for testing | ||
dryRun = project.hasProperty("bintrayDryRun") | ||
publications = ['javaLibrary'] | ||
|
||
pkg { | ||
repo = 'maven' | ||
|
||
userOrg = 'linkedin' | ||
name = 'coral' | ||
licenses = ['BSD 2-Clause'] | ||
labels = [ | ||
'coral', | ||
'sql', | ||
'presto', | ||
'spark', | ||
'hive', | ||
'views' | ||
] | ||
vcsUrl = "https://github.com/linkedin/coral.git" | ||
|
||
version { | ||
name = project.version | ||
vcsTag = "v$project.version" | ||
} | ||
} | ||
} |
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,50 +1,18 @@ | ||
shipkit { | ||
gitHub.repository = "linkedin/coral" | ||
apply plugin: "org.shipkit.shipkit-auto-version" | ||
apply plugin: "org.shipkit.shipkit-changelog" | ||
apply plugin: "org.shipkit.shipkit-github-release" | ||
|
||
gitHub.readOnlyAuthToken = "361a43a2b351e61e2243c5ea15792f33a3c9b467" | ||
|
||
// The GitHub write token is required for committing release notes and bumping up project version | ||
// Ensure that the release machine or Travis CI has this env variable exported | ||
gitHub.writeAuthToken = System.getenv("GH_WRITE_TOKEN") | ||
|
||
git.releasableBranchRegex = "master|release/.+" | ||
|
||
team.developers = [ | ||
'wmoustafa:Walaa Eldin Moustafa', | ||
'khaitranq:Khai Tranh', | ||
'funcheetah:Wenye Zhang', | ||
'shardulm94:Shardul Mahadik', | ||
'hotsushi:Sushant Raikar' | ||
] | ||
tasks.named("generateChangelog") { | ||
previousRevision = project.ext.'shipkit-auto-version.previous-tag' | ||
githubToken = System.getenv("GH_WRITE_TOKEN") | ||
repository = "linkedin/coral" | ||
} | ||
|
||
allprojects { | ||
plugins.withId("org.shipkit.bintray") { | ||
|
||
//Bintray configuration is handled by JFrog Bintray Gradle Plugin | ||
//For reference see the official documentation: https://github.com/bintray/gradle-bintray-plugin | ||
bintray { | ||
// The Bintray API token is required to publish artifacts to Bintray | ||
// Ensure that the release machine or Travis CI has this env variable exported | ||
key = System.getenv("BINTRAY_API_KEY") | ||
pkg { | ||
repo = 'maven' | ||
user = 'lnkd-apa' | ||
userOrg = 'linkedin' | ||
name = 'coral' | ||
licenses = ['BSD 2-Clause'] | ||
labels = [ | ||
'coral', | ||
'sql', | ||
'presto', | ||
'spark', | ||
'hive', | ||
'views' | ||
] | ||
vcsUrl = "https://github.com/linkedin/coral.git" | ||
description = "A library for analyzing, processing, and rewriting views defined in the Hive Metastore, and sharing them across multiple execution engines" | ||
} | ||
publish = true | ||
} | ||
} | ||
tasks.named("githubRelease") { | ||
def genTask = tasks.named("generateChangelog").get() | ||
dependsOn genTask | ||
repository = genTask.repository | ||
changelog = genTask.outputFile | ||
githubToken = System.getenv("GH_WRITE_TOKEN") | ||
newTagRevision = System.getenv("TRAVIS_COMMIT") | ||
} |
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,4 +1,3 @@ | ||
#Version of the produced binaries. This file is intended to be checked-in. | ||
#It will be automatically bumped by release automation. | ||
version=1.0.19 | ||
previousVersion=1.0.18 | ||
# Version of the produced binaries. | ||
# The version is inferred by shipkit-auto-version Gradle plugin (https://github.com/shipkit/shipkit-auto-version) | ||
version=1.0.* |