-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
100 lines (81 loc) · 2.86 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
97
98
99
100
//apply plugin: 'java'
//apply plugin: 'jacoco'
//apply plugin: 'application'
//
//
//mainClassName = 'br.univali.portugol.plugin.maspath.TesteTela'
//
//repositories {
// jcenter()
// mavenCentral()
//}
//
//dependencies {
// testImplementation 'junit:junit:4.13'
// compile fileTree(dir: 'libs', include: '*.jar')
//
// // https://mvnrepository.com/artifact/commons-codec/commons-codec
// compile group: 'commons-codec', name: 'commons-codec', version: '1.6'
//
// // https://mvnrepository.com/artifact/org.apache.commons/commons-exec
// compile group: 'org.apache.commons', name: 'commons-exec', version: '1.3'
//
// // https://mvnrepository.com/artifact/commons-io/commons-io
// compile group: 'commons-io', name: 'commons-io', version: '2.4'
//
// // https://mvnrepository.com/artifact/commons-logging/commons-logging
// compile group: 'commons-logging', name: 'commons-logging', version: '1.1.3'
//}
apply plugin: 'java'
sourceCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
jar {
manifest {
attributes "Main-Class": "br.univali.portugol.plugin.maspath.TesteTela"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task customFatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'br.univali.portugol.plugin.maspath.TesteTela'
}
baseName = 'SACIP'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
// manifest {
// attributes 'Implementation-Title': 'SACIP',
// 'Main-Class': 'br.univali.portugol.plugin.maspath.TesteTela'
// }
// baseName = project.name
// from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
// with jar
}
repositories {
mavenCentral()
}
dependencies {
compile fileTree(include: ['*.jar'], dir: '../../portugol-studio/ide/build/libs')
compile fileTree(include: ['*.jar'], dir: '../../portugol-studio/core/build/libs')
compile fileTree(include: ['*.jar'], dir: 'libs')
//compile 'org.hid4java:hid4java:0.5.0'
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core
implementation 'com.fasterxml.jackson.core:jackson-databind:2.11.3'
// https://mvnrepository.com/artifact/org.apache.commons/commons-exec
implementation 'org.apache.commons:commons-exec:1.3'
// https://mvnrepository.com/artifact/cglib/cglib
implementation 'cglib:cglib:3.2.5'
// https://mvnrepository.com/artifact/commons-io/commons-io
implementation 'commons-io:commons-io:2.8.0'
// testCompile group: 'junit', name: 'junit', version: '4.10'
}
task copyRuntimeLibs() {
doLast {
copy {
into "build/libs/lib"
from configurations.runtime
}
}
}
build.dependsOn copyRuntimeLibs