-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
92 lines (80 loc) · 2.13 KB
/
build.gradle
File metadata and controls
92 lines (80 loc) · 2.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
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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id "checkstyle"
id "java"
id "java-gradle-plugin"
id "java-library"
id "maven-publish"
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://maven.minecraftforge.net/"
}
maven {
url "https://repo.conduit.systems/repository/releases/"
}
}
dependencies {
implementation "org.projectlombok:lombok:1.18.20"
annotationProcessor "org.projectlombok:lombok:1.18.20"
implementation "com.google.code.gson:gson:2.8.6"
implementation "org.apache.logging.log4j:log4j-api:2.14.0"
implementation "org.apache.logging.log4j:log4j-core:2.14.0"
compileOnly "net.md-5:SpecialSource:1.10.0"
compileOnly "cpw.mods:grossjava9hacks:2.0.9"
compileOnly "cpw.mods:modlauncher:8.0.6"
compileOnly "org.spongepowered:mixin:0.8.2"
}
group = theGroup
version = theVersion
checkstyle {
configFile = file("$rootDir/checkstyle.xml")
}
java {
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
}
task processSource(type: Sync) {
from sourceSets.main.java
inputs.property "version", version
filter(ReplaceTokens, tokens: [VERSION: version])
into "$buildDir/src"
}
compileJava {
source = processSource.outputs
}
jar {
manifest {
attributes(
"Main-Class" : "systems.conduit.stream.launcher.LauncherStart",
"Launcher-Agent-Class" : "systems.conduit.stream.launcher.Agent"
)
}
}
gradlePlugin {
plugins {
stream {
id = "Stream"
implementationClass = "systems.conduit.stream.gradle.StreamGradlePlugin"
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
credentials {
username System.getProperty("MAVEN_USER")?:'ci'
password System.getProperty("MAVEN_PASSWORD")?:'password'
}
url "https://repo.conduit.systems/repository/releases/"
}
}
}
task install(dependsOn: [publishToMavenLocal])