2015-09-30 18:06:58 +02:00
|
|
|
buildscript {
|
|
|
|
ext {
|
2018-06-13 19:19:30 +02:00
|
|
|
kotlin_version = '1.2.41'
|
2017-12-08 07:27:42 +01:00
|
|
|
springBootVersion = '2.0.0.M7'
|
2015-09-30 18:06:58 +02:00
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2015-10-03 09:05:53 +02:00
|
|
|
maven { url "https://repo.spring.io/milestone" }
|
2017-12-08 07:27:42 +01:00
|
|
|
jcenter()
|
2015-09-30 18:06:58 +02:00
|
|
|
}
|
|
|
|
dependencies {
|
2018-06-13 19:19:30 +02:00
|
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
|
2017-12-08 07:27:42 +01:00
|
|
|
classpath('se.transmode.gradle:gradle-docker:1.2')
|
2018-06-13 19:19:30 +02:00
|
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
|
|
|
|
classpath("org.jetbrains.kotlin:kotlin-allopen:$kotlin_version")
|
|
|
|
classpath('com.github.ben-manes:gradle-versions-plugin:0.17.0')
|
2015-09-30 18:06:58 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-08 07:27:42 +01:00
|
|
|
group = 'dissem'
|
|
|
|
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'kotlin-spring'
|
|
|
|
apply plugin: 'eclipse'
|
2015-09-30 18:06:58 +02:00
|
|
|
apply plugin: 'idea'
|
2017-12-08 07:27:42 +01:00
|
|
|
apply plugin: 'org.springframework.boot'
|
2015-10-03 09:05:53 +02:00
|
|
|
apply plugin: 'io.spring.dependency-management'
|
2017-12-08 07:27:42 +01:00
|
|
|
apply plugin: 'docker'
|
|
|
|
apply plugin: 'com.github.ben-manes.versions'
|
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
|
|
|
|
}
|
|
|
|
|
2017-12-08 07:27:42 +01:00
|
|
|
ext.jabitVersion = 'feature-refactoring-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")
|
2017-12-08 07:27:42 +01:00
|
|
|
compile("io.springfox:springfox-swagger2:2.7.0")
|
|
|
|
compile("io.springfox:springfox-swagger-ui:2.7.0")
|
2018-06-13 19:19:30 +02:00
|
|
|
compile("com.fasterxml.jackson.module:jackson-module-kotlin:")
|
2015-09-30 18:06:58 +02:00
|
|
|
|
2018-06-13 19:19:30 +02: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")
|
|
|
|
compile("ch.dissem.jabit:jabit-extensions:$jabitVersion")
|
2015-09-30 18:06:58 +02:00
|
|
|
|
2018-06-13 19:19:30 +02:00
|
|
|
compile('com.h2database:h2:1.4.194')
|
2015-09-30 18:06:58 +02:00
|
|
|
|
2018-06-13 19:19:30 +02:00
|
|
|
compile('com.google.zxing:core:3.3.1')
|
2017-05-10 21:49:24 +02:00
|
|
|
|
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")
|
2018-06-13 19:19:30 +02:00
|
|
|
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
|
|
|
|
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version")
|
|
|
|
compile("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
|
|
|
|
compile("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-08 07:27:42 +01:00
|
|
|
task buildDocker(type: Docker, dependsOn: build) {
|
|
|
|
push = true
|
|
|
|
applicationName = 'jabit-server'
|
|
|
|
dockerfile = file('src/main/docker/Dockerfile')
|
|
|
|
doFirst {
|
|
|
|
copy {
|
|
|
|
from jar
|
|
|
|
into stageDir
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
baseName = 'jabit-server'
|
2018-06-13 19:19:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//frontend:build will be run before processResources
|
|
|
|
processResources {
|
|
|
|
dependsOn('frontend:build')
|
2017-12-08 07:27:42 +01:00
|
|
|
from('frontend/dist') {
|
|
|
|
//Public is a default supported Spring Boot resources directory.
|
|
|
|
into 'public'
|
|
|
|
}
|
2015-10-03 09:05:53 +02:00
|
|
|
}
|
|
|
|
|
2015-09-30 18:06:58 +02:00
|
|
|
task wrapper(type: Wrapper) {
|
|
|
|
gradleVersion = '2.3'
|
|
|
|
}
|
2018-06-13 19:19:30 +02:00
|
|
|
|
2017-12-08 07:27:42 +01:00
|
|
|
compileKotlin {
|
2018-06-13 19:19:30 +02:00
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
2017-12-08 07:27:42 +01:00
|
|
|
}
|
|
|
|
compileTestKotlin {
|
2018-06-13 19:19:30 +02:00
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
2017-12-08 07:27:42 +01:00
|
|
|
}
|