mirror of
https://github.com/OpenLiberty/liberty-bikes.git
synced 2025-01-18 10:23:58 +08:00
79 lines
2.2 KiB
Groovy
79 lines
2.2 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name = 'Sonatype Nexus Snapshots'
|
|
url = 'https://oss.sonatype.org/content/repositories/snapshots/'
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath 'net.wasdev.wlp.gradle.plugins:liberty-gradle-plugin:2.1.1-SNAPSHOT'
|
|
}
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
subprojects.each { dependsOn("${it.name}:clean") };
|
|
delete 'build'
|
|
}
|
|
|
|
subprojects {
|
|
apply plugin: 'liberty'
|
|
apply plugin: 'war'
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name = 'Sonatype Nexus Snapshots'
|
|
url = 'https://oss.sonatype.org/content/repositories/snapshots/'
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath 'net.wasdev.wlp.gradle.plugins:liberty-gradle-plugin:2.1.1-SNAPSHOT'
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
providedCompile group: 'org.eclipse.microprofile', name: 'microprofile', version: '1.3'
|
|
providedCompile group: 'javax', name: 'javaee-api', version: '8.0'
|
|
testCompile group: 'junit', name: 'junit', version: '4.+'
|
|
testCompile group: 'org.eclipse', name: 'yasson', version: '1.0.1'
|
|
testCompile group: 'org.glassfish', name: 'javax.json', version: '1.1.+'
|
|
}
|
|
|
|
eclipse {
|
|
classpath {
|
|
defaultOutputDir = file('build/classes/java/main')
|
|
file {
|
|
whenMerged {
|
|
entries.findAll { it.path.startsWith('src/test') }
|
|
.each { it.output = "build/classes/java/test" }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
liberty {
|
|
install {
|
|
// use 1 liberty install for the whole repo
|
|
baseDir = rootProject.buildDir
|
|
runtimeUrl = "https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/downloads/wlp/beta/wlp-beta-2018.3.0.0.zip"
|
|
}
|
|
}
|
|
|
|
clean.dependsOn 'libertyStop'
|
|
libertyDebug.dependsOn 'libertyStop'
|
|
libertyStart.dependsOn 'libertyStop', 'test'
|
|
libertyRun.dependsOn 'libertyStop'
|
|
|
|
task debug { dependsOn 'libertyDebug' }
|
|
task start { dependsOn 'libertyStart' }
|
|
task stop { dependsOn 'libertyStop' }
|
|
}
|