Skip to content

Instantly share code, notes, and snippets.

@terabyte
Created October 6, 2017 17:50
Show Gist options
  • Save terabyte/9d9a2d40eed48c2ab3279b5f83722513 to your computer and use it in GitHub Desktop.
Save terabyte/9d9a2d40eed48c2ab3279b5f83722513 to your computer and use it in GitHub Desktop.
apply plugin: 'java'
dependencies {
compile fileTree(dir: "$System.env.INPUT_ARTIFACTS_DIR", include: 'strong/*/jars/*.jar')
}
version = "$System.env.PACKAGE_CUMULATIVE_VERSION"
sourceSets {
main {
java {
srcDirs = ['src', '.src.gen']
}
resources {
srcDirs = ['src', '.src.gen']
}
}
test {
java {
srcDir 'test'
}
resources {
srcDir 'test'
}
}
}
task simplePublishJars(type: Copy) {
from jar
into "$System.env.OUTPUT_ARTIFACTS_DIR/jars"
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
from sourceSets.test.allSource
}
task simplePublishSources(type: Copy) {
from sourcesJar
into "$System.env.OUTPUT_ARTIFACTS_DIR/sources"
}
task simplePublish {
dependsOn simplePublishJars, simplePublishSources
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment