44 lines
1.3 KiB
Groovy
44 lines
1.3 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springboot_version}")
|
|
}
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'org.springframework.boot'
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
version = '0.0.1-SNAPSHOT'
|
|
sourceCompatibility = 11
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile('org.springframework.boot:spring-boot-starter-web')
|
|
compile('org.springframework.boot:spring-boot-starter-amqp')
|
|
compile('com.h2database:h2:1.4.196')
|
|
compileOnly('org.projectlombok:lombok:1.18.2')
|
|
|
|
// add jaxb since it's no longer available in Java 11
|
|
runtime('javax.xml.bind:jaxb-api:2.3.1')
|
|
|
|
// add javassist >= 3.23.1-GA since earlier versions are broken in Java 11
|
|
// see https://github.com/jboss-javassist/javassist/issues/194
|
|
runtime('org.javassist:javassist:3.23.1-GA')
|
|
|
|
testCompile("au.com.dius:pact-jvm-consumer-junit_2.12:${pact_version}")
|
|
testCompile("au.com.dius:pact-jvm-consumer-groovy_2.12:${pact_version}")
|
|
testCompile('org.springframework.boot:spring-boot-starter-test')
|
|
}
|
|
|
|
bootRun {
|
|
jvmArgs = ["-Xdebug", "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"]
|
|
}
|