-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathbuild.gradle
More file actions
55 lines (49 loc) · 1.61 KB
/
Copy pathbuild.gradle
File metadata and controls
55 lines (49 loc) · 1.61 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
subprojects {
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'maven-publish'
group = 'com.envyful.better.dex.rewards'
version = '4.0.2'
ext {
forgeVersion = "none"
platform = "Forge"
}
repositories {
mavenCentral()
maven { url = "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url = "https://repo.lucko.me/" }
maven { url = "https://repo.aikar.co/content/groups/aikar/" }
maven { url = "https://jitpack.io" }
maven { url = "https://repo.spongepowered.org/maven" }
maven { url = "https://maven.envyware.co.uk/releases" }
ivy {
setUrl('https://download.nodecdn.net/containers/reforged/universal/release')
metadataSources {
artifact()
gradleMetadata()
}
patternLayout {
artifact('[artifact].[ext]')
}
}
}
afterEvaluate {
jar {
setArchiveBaseName("${rootProject.name}-${platform}")
}
task versionedRelease(type: Copy) {
dependsOn('shadowJar')
delete fileTree('../release/') {
include '**/*.jar'
}
group "build"
print("${platform} - ${version} - ${forgeVersion}")
from("./build/libs/${rootProject.name}-${platform}-${version}.jar")
into('../release/')
include '*.jar'
rename { String filename ->
filename.replace("-${version}.jar", "-${project.version}-${forgeVersion}.jar")
}
}
}
}