-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradleold
110 lines (102 loc) · 3.02 KB
/
build.gradleold
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
101
102
103
104
105
106
107
108
109
110
buildscript {
ext.kotlin_version = '1.8.0'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id 'application'
// id "nebula.lint" version "18.0.3"
}
apply plugin: "java"
apply plugin: 'kotlin'
apply plugin: 'application'
//gradleLint.rules = ['all-dependency']
version '1.0'
sourceCompatibility = 16
repositories {
maven { url 'https://www.jitpack.io' }
maven {
name 'm2-dv8tion'
url 'https://m2.dv8tion.net/releases'
}
mavenLocal()
mavenCentral()
maven{ url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven{ url "https://oss.sonatype.org/content/repositories/releases/" }
maven{ url 'https://jitpack.io' }
maven{
name 'm2-dv8tion'
url 'https://m2.dv8tion.net/releases'
}
mavenCentral()
}
allprojects{
repositories{
mavenLocal()
mavenCentral()
maven{ url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven{ url "https://oss.sonatype.org/content/repositories/releases/" }
maven{ url 'https://jitpack.io' }
maven{
name 'm2-dv8tion'
url 'https://m2.dv8tion.net/releases'
}
}
}
ext {
//the build number that this plugin is made for
arcVersion = 'v144.3'
}
dependencies {
compileOnly "com.github.Anuken.mindustryjitpack:server:$arcVersion"
compileOnly "com.github.Anuken.mindustryjitpack:core:v144.3"
compileOnly "com.github.Anuken.Arc:arc-core:$arcVersion"
implementation group: 'org.json', name: 'json', version: '20210307'
implementation('org.javacord:javacord:3.5.0')
implementation("net.dv8tion:JDA:4.3.0_277")
implementation 'jfree:jfreechart:1.0.13'
implementation 'org.postgresql:postgresql:42.4.1'
compileOnly "com.github.7003Mars:rollback:1.1"
}
jar {
version = null
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from {
configurations.runtimeClasspath.findAll { !it.name.endsWith('pom') }.collect { it.isDirectory() ? it : zipTree(it) }
}
}
//jar {
// version = null
// exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
// duplicatesStrategy = DuplicatesStrategy.EXCLUDE
//
// from {
// configurations.runtimeClasspath.findAll { !it.name.endsWith('pom') }.collect { it.isDirectory() ? it : zipTree(it) }
// }
// archiveName 'PlotTest.jar'
//
// doFirst {
// manifest(({
// if (!configurations.runtimeClasspath.isEmpty()) {
// attributes(
// 'Class-Path': configurations.runtimeClasspath.collect { it.toURI().toString() }.join(' '),
// 'Main-Class': 'mindustry.plugin.utils.plot.SkillMatchBar')
// }
// } as groovy.lang.Closure<?>))
// }
//}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}