forked from DaedalusGame/BetterWithMods
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
124 lines (109 loc) · 3.44 KB
/
build.gradle
File metadata and controls
124 lines (109 loc) · 3.44 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
buildscript {
repositories {
jcenter()
maven { url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
apply plugin: "maven"
apply plugin: 'net.minecraftforge.gradle.forge'
version = "1.12-2.0.25"
group = "betterwithmods"
archivesBaseName = "BetterWithMods"
sourceCompatibility = targetCompatibility = "1.8"
compileJava {
sourceCompatibility = targetCompatibility = "1.8"
}
if (System.getenv().BUILD_NUMBER != null) {//adds the build number to the end of the version string if on a build server
version += "-${System.getenv().BUILD_NUMBER}"
}
minecraft {
version = "1.12.2-14.23.1.2554"
runDir = "run"
mappings = "snapshot_20171125"
replace "%VERSION%": "${project.version}"
useDepAts = true
}
repositories {
maven { url "http://maven.blamejared.com" }
maven { url 'http://dvs1.progwml6.com/files/maven' }
maven { url "http://maven.amadornes.com/" }
maven { url "http://www.ryanliptak.com/maven/" }
maven { url "http://maven.tterrag.com" }
mavenCentral()
}
dependencies {
deobfCompile "mezz.jei:jei_1.12.2:4.8.3.128"
deobfCompile "applecore:AppleCore:1.12.2-3.1.0:deobf"
deobfCompile "team.chisel.ctm:CTM:MC1.12-0.2.3.9"
}
jar {
manifest {
attributes 'FMLAT': 'bwm_at.cfg'
}
}
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier "dev"
}
artifacts {
archives deobfJar
}
configurations {
deployerJars
}
dependencies {
deployerJars 'org.apache.maven.wagon:wagon-ftp:2.2'
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file://" + System.getenv("local_maven"))
pom {
groupId = project.group
version
artifactId = project.archivesBaseName
project {
name project.archivesBaseName
packaging 'jar'
description 'BetterWithMods'
url 'https://github.com/BetterWithMods/BetterWithMods'
scm {
url 'https://github.com/BetterWithMods/BetterWithMods.git'
connection 'scm:git:git@github.com:BetterWithMods/BetterWithMods.git'
developerConnection 'scm:git:git@github.com:BetterWithMods/BetterWithMods.git'
}
issueManagement {
system 'github'
url 'https://github.com/BetterWithMods/BetterWithMods/issues'
}
developers {
developer {
id 'primetoxinz'
name 'primetoxinz'
roles { role 'developer' }
}
developer {
id 'beetoguy'
name 'beetoguy'
roles { role 'developer' }
}
}
}
}
}
}
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version': project.version, 'mcversion': project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}