forked from zxh0/classpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
46 lines (35 loc) · 1.13 KB
/
Copy pathbuild.gradle
File metadata and controls
46 lines (35 loc) · 1.13 KB
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
apply plugin: 'java'
apply plugin: 'application'
version '0.7-SNAPSHOT'
// required by application plugin
mainClassName = 'com.github.zxh.classpy.gui.ClasspyApp'
dependencies {
// TODO: Add dependencies here ...
// You can read more about how to add dependency here:
// http://www.gradle.org/docs/current/userguide/dependency_management.html#sec:how_to_declare_your_dependencies
compile project(':classpy-gui')
}
// https://www.baeldung.com/gradle-fat-jar
task uberjar(type: Jar) {
manifest {
attributes 'Main-Class': 'com.github.zxh.classpy.gui.ClasspyApp'
}
//baseName = 'all-in-one-jar'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
subprojects {
apply plugin: 'java'
//apply plugin: 'application'
sourceCompatibility = "1.8"
//mainClassName = 'com.github.zxh0.luago.Main'
sourceCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
dependencies {
//compileOnly 'org.projectlombok:lombok:1.18.0'
testCompile 'junit:junit:4.12'
}
repositories {
jcenter()
}
}