Jabit-Server/build.gradle

74 lines
2.1 KiB
Groovy
Raw Normal View History

2015-09-30 18:06:58 +02:00
buildscript {
ext {
2015-10-03 09:05:53 +02:00
springBootVersion = '1.3.0.M5'
2015-09-30 18:06:58 +02:00
}
repositories {
mavenCentral()
2015-10-03 09:05:53 +02:00
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
2015-09-30 18:06:58 +02:00
}
dependencies {
2015-10-03 09:05:53 +02:00
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
2015-09-30 18:06:58 +02:00
}
}
apply plugin: 'java'
apply plugin: 'eclipse-wtp'
apply plugin: 'idea'
2015-10-03 09:05:53 +02:00
apply plugin: 'spring-boot'
apply plugin: 'io.spring.dependency-management'
2015-09-30 18:06:58 +02:00
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
mavenCentral()
2015-10-03 09:05:53 +02:00
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
2015-09-30 18:06:58 +02:00
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
configurations {
providedRuntime
}
ext.jabitVersion = 'development-SNAPSHOT'
2015-09-30 18:06:58 +02:00
dependencies {
compile("org.springframework.boot:spring-boot-starter-hateoas")
compile("org.springframework.boot:spring-boot-starter-jersey")
compile("org.springframework.boot:spring-boot-starter-web")
compile("io.springfox:springfox-swagger2:2.0.2")
compile("io.springfox:springfox-swagger-ui:2.0.2")
2015-09-30 18:06:58 +02:00
2016-01-25 00:22:02 +01:00
compile "ch.dissem.jabit:jabit-core:$jabitVersion"
compile "ch.dissem.jabit:jabit-networking:$jabitVersion"
compile "ch.dissem.jabit:jabit-repositories:$jabitVersion"
compile "ch.dissem.jabit:jabit-cryptography-bouncy:$jabitVersion"
2016-01-25 00:22:02 +01:00
compile "ch.dissem.jabit:jabit-extensions:$jabitVersion"
2015-09-30 18:06:58 +02:00
compile 'com.h2database:h2:1.4.194'
2015-09-30 18:06:58 +02:00
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
2015-10-03 09:05:53 +02:00
testCompile("org.springframework.boot:spring-boot-starter-test")
2015-09-30 18:06:58 +02:00
}
eclipse {
classpath {
2015-10-03 09:05:53 +02:00
containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER')
containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8'
2015-09-30 18:06:58 +02:00
}
}
2015-10-03 09:05:53 +02:00
task(copyWebapp, type: Copy, dependsOn: ":webapp:build") {
from(file('webapp/dist'))
into(file(buildDir.canonicalPath + '/resources/main/static'))
}
build.dependsOn copyWebapp
2015-09-30 18:06:58 +02:00
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}