-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (50 loc) · 1.22 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '2.0.20'
}
//apply plugin: "java"
apply plugin: 'maven-publish'
group = 'net.ddns.mindustry'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven{ url "https://raw.githubusercontent.com/Zelaux/MindustryRepo/master/repository" }
maven{ url 'https://www.jitpack.io' }
}
//dependencies {
// testImplementation 'org.jetbrains.kotlin:kotlin-test'
//}
test {
useJUnitPlatform()
}
ext {
mindustryVersion = 'v145'
jabelVersion = "93fde537c7"
}
dependencies{
compileOnly "com.github.Anuken.Arc:arc-core:$mindustryVersion"
compileOnly "com.github.Anuken.Mindustry:core:$mindustryVersion"
annotationProcessor "com.github.Anuken:jabel:$jabelVersion"
}
jar{
archiveFileName = "${project.archivesBaseName}.jar"
from{
configurations.runtimeClasspath.collect{it.isDirectory() ? it : zipTree(it)}
}
// from(rootDir){
// include "plugin.json"
// }
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'net.ddns.mindustry'
artifactId = 'Segment'
version = '1.0'
from components.java
}
}
}