-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
96 lines (79 loc) · 2.06 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
plugins {
id 'java'
}
repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
dependencies {
compileOnly name: 'appian-plug-in-sdk'
compileOnly 'com.appian:connected-systems-core:1.2.0'
compileOnly 'javax.servlet:javax.servlet-api:3.1.0'
compileOnly 'javax.annotation:javax.annotation-api:1.2'
compileOnly 'javax.persistence:javax.persistence-api:2.2'
compileOnly 'commons-io:commons-io:2.4'
compileOnly 'commons-lang:commons-lang:2.6'
compileOnly 'log4j:log4j:1.2.17'
// add your runtime dependencies here
// implementation 'groupId:artifactId:version'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.16.0-rc1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
compileJava {
sourceCompatibility = '1.8' // Set to your desired Java version
targetCompatibility = '1.8' // Set to your desired Java version
}
test {
useJUnitPlatform()
}
configurations {
testImplementation.extendsFrom compileOnly
}
// *** Uncomment the spotless code formatting and build dependency in order to enable a code consistency formatter ***
//
// spotless {
// encoding 'UTF-8'
//
// groovyGradle {
// target '**/*.gradle'
// greclipse().configFile('.settings/greclipse.properties')
// }
//
// java {
// eclipse().configFile('.settings/org.eclipse.jdt.core.prefs')
// removeUnusedImports()
// }
//
// format 'xml', {
// target '/src/**/*.xml'
// eclipseWtp('xml').configFile('.settings/org.eclipse.wst.xml.core.prefs')
// }
//
// format 'misc', {
// target '*.md'
// trimTrailingWhitespace()
// indentWithSpaces(2)
// endWithNewline()
// }
// }
jar {
// dependsOn spotlessCheck
dependsOn test
duplicatesStrategy = DuplicatesStrategy.FAIL
into('META-INF/lib') {
from(configurations.runtimeClasspath)
}
into('src') {
from (sourceSets.main.allJava)
}
manifest {
attributes("Spring-Context": "*;publish-context:=false")
}
}