generated from rishabhverma17/Dropiwizard-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (34 loc) · 838 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
plugins {
id 'java'
}
group 'com.rishabh'
version '1.0-SNAPSHOT'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
project.ext {
configFile = pConfigFile
mainClass = pMainClassName
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'application'
apply plugin: 'eclipse'
apply from: "$rootDir/gradle/dependencies.gradle"
apply from: "$rootDir/gradle/spotless.gradle"
mainClassName = "$mainClass"
run {
dependsOn build
def props = new Properties()
file("dev.env").withInputStream { props.load(it) }
environment props
jvmArgs '-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005'
args 'server', "$configFile"
debug true
}