-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
68 lines (59 loc) · 2.18 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
63
64
65
66
67
68
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
classpath group: 'org.twitter4j', name: 'twitter4j-core', version: '4.0.2'
}
}
import twitter4j.*
import java.io.*
apply plugin: 'forge'
apply plugin: 'curseforge'
version = "1710.1180.2.0-beta"
group= "com.renkin42.renkin42swt" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "Renkin42SWT"
minecraft {
version = "1.8-11.14.1.1334"
assetDir = "eclipse/assets"
}
curse {
apiKey = curseforge_key //Located in gradle.properties, not sharing.
projectId = "60999"
changelog = """
2.0 port to 1.7.10.
"""
releaseType = "beta"
}
processResources {
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
include 'README.txt'
// replace version and mcversion
expand 'version':project.version, 'mcversion':project.minecraft.version, 'changelog':project.curse.changelog
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
exclude 'README.txt'
}
}
/*task twitter << {
// Don't try running this. You'll need the twitter4j.properties file
// To get the keys, go to dev.twitter.com and create a new app.
// Template for twitter4j.properties: https://gist.github.com/seratch/4238807
Twitter twitter = new TwitterFactory().getInstance()
ext.tweet = "Stuff Worth Throwing $project.curse.releaseType version $project.version is now live on curse! Check it out at http://www.curse.com/mc-mods/minecraft/stuff-worth-throwing/$project.tasks.curse.fileId #Minecraft #Gradle"
Status status = twitter.updateStatus(tweet)
println("Successfully updated the status to [" + status.getText() + "].")
}*/