-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (49 loc) · 1.2 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
plugins {
id 'java'
id 'application'
id 'maven-publish'
}
group = 'com.coolspy3'
mainClassName = 'com.coolspy3.csmodloader.Main'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
run {
enableAssertions = true
}
dependencies {
implementation 'com.google.code.gson:gson:2.8.8'
implementation 'ch.qos.logback:logback-core:1.2.7'
implementation 'ch.qos.logback:logback-classic:1.2.7'
implementation group: 'commons-io', name: 'commons-io', version: '2.6'
testImplementation 'junit:junit:4.13'
}
run.dependsOn('build')
jar {
manifest {
attributes 'Main-Class': 'com.coolspy3.csmodloader.Main'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
javadoc {
options {
links 'https://docs.oracle.com/javase/8/docs/api/'
}
if (JavaVersion.current() >= JavaVersion.VERSION_1_9) {
options.addStringOption("-release", "8")
}
}
publishing {
publications {
gpr(MavenPublication) {
groupId = 'com.coolspy3'
artifactId = 'csmodloader'
version = '1.3.3'
from components.java
}
}
}