Created
October 6, 2017 17:50
-
-
Save terabyte/9d9a2d40eed48c2ab3279b5f83722513 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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