-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.gradle
36 lines (31 loc) · 970 Bytes
/
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
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
group = 'gg.chaldea.client.reset.packet'
version = '0.0.6'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/Just-Chaldea/Forge-Client-Reset-Packet"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
task versionedRelease(type: Copy) {
group "build"
from('./build/libs/forge-' + project.version + '.jar')
into('../release/')
include '*.jar'
rename { String filename ->
filename.replace("forge-${project.version}.jar", "${rootProject.name}-${project.version}.jar")
}
}
}