Files
primitive-collections/build.gradle
2018-09-13 19:01:02 +02:00

63 lines
1.3 KiB
Groovy

apply plugin: 'java'
apply plugin: 'eclipse'
/*
* The shared configuration for all sub-projects:
*/
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'maven-publish'
// java compatibility version
sourceCompatibility = 10
configurations {
tests
}
// the repositories for external depenencies
repositories {
mavenCentral()
jcenter()
}
uploadArchives {
repositories {
mavenDeployer {
if (!project.hasProperty('mavenDeployRepo')){
throw new IllegalStateException("Set the property 'mavenDeployRepo' to the repository URL. A good place is ~/.gradle/gradle.properties")
}
repository(url: "${mavenDeployRepo}")
println "publishing to: ${mavenDeployRepo}"
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
// dependencies that all sub-projects have
dependencies {
testCompile 'org.junit.jupiter:junit-jupiter-api:5.2.0'
testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.2.0'
testRuntime 'org.junit.platform:junit-platform-launcher:1.2.0' // needed by eclipse
}
test {
useJUnitPlatform()
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.10.1'
}