-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
68 lines (56 loc) · 1.7 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
}
plugins {
id 'groovy'
id 'eclipse'
}
apply plugin: 'application'
mainClassName = "br.com.bluesoft.bee.Bee"
group = 'br.com.bluesoft.bee'
def artifact = 'bee'
version = '1.104'
def javaVersion = JavaVersion.VERSION_1_8
sourceCompatibility = javaVersion;
targetCompatibility = javaVersion;
def startScriptsDir = new File("$buildDir/scripts")
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
implementation 'org.apache.groovy:groovy:4.0.22'
implementation 'org.apache.groovy:groovy-sql:4.0.22'
implementation 'org.apache.groovy:groovy-cli-commons:4.0.22'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
testImplementation "org.spockframework:spock-core:2.3-groovy-4.0"
testImplementation 'org.spockframework:spock-junit4:2.3-groovy-4.0'
testImplementation 'cglib:cglib-nodep:3.2.12'
testImplementation 'org.mockito:mockito-core:2.27.0'
testImplementation "org.junit.jupiter:junit-jupiter-api:5.8.1"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.8.1"
testRuntimeOnly 'org.slf4j:slf4j-api:1.7.10'
}
startScripts.doLast {
def scriptsDir = new File("${startScriptsDir}")
scriptsDir.eachFile {
def script = it
def scriptText = script.text
scriptText = scriptText.replaceAll('CLASSPATH=.*', 'for i in \\$APP_HOME/lib/*;do CLASSPATH=\\$CLASSPATH:\\$i; done')
script.write scriptText
}
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes 'Implementation-Title': "${artifact}", 'Implementation-Version': "${version}"
}
}
applicationDistribution.from('bee.properties') {
into 'bin'
}