mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-19 13:09:07 +00:00
Try CircleCI
This commit is contained in:
1 parent
b50e6a934f
commit
3945599fb4
5 files changed
+27
-8
No files matched your search
+2
-1
@@ -22,4 +22,5 @@ hs_err_pid*
|
||||
.settings/
|
||||
|
||||
#gradle
|
||||
.gradle/
|
||||
.gradle/
|
||||
build/
|
||||
@@ -87,7 +87,6 @@ public class ProfileCache {
|
||||
}
|
||||
private void saveLocalProfile(String username,UserProfile profile){
|
||||
String json=CustomSkinLoader.GSON.toJson(profile);
|
||||
File localProfile=new File(PROFILE_CACHE_DIR,username.toLowerCase()+".json");
|
||||
if(localProfile.exists())
|
||||
localProfile.delete();
|
||||
try {
|
||||
|
||||
+3
-3
@@ -21,7 +21,7 @@ ext.MINECRAFT_FULL_VERSIONS="1.8,1.8.8,1.8.9,1.9,1.9.4,1.10,1.10.2,1.11,1.11.2,1
|
||||
ext.snapshot = !(rootProject.ext.config.snapshot==""||rootProject.ext.config.snapshot=="0"||rootProject.ext.config.snapshot==0)
|
||||
|
||||
archivesBaseName = "CustomSkinLoader_Forge"
|
||||
version = rootProject.ext.config.version + rootProject.ext.config.dev_version + (snapshot?"-SNAPSHOT-"+System.getenv("BUILD_NUMBER"):"")
|
||||
version = rootProject.ext.config.version + rootProject.ext.config.dev_version + (snapshot?"-SNAPSHOT-"+System.getenv("CIRCLE_BUILD_NUM"):"")
|
||||
group = "customskinloader"
|
||||
|
||||
sourceCompatibility = targetCompatibility = "1.6"
|
||||
@@ -85,8 +85,8 @@ processResources
|
||||
mcVersion :MINECRAFT_VERSION,
|
||||
mcFullVersions :MINECRAFT_FULL_VERSIONS,
|
||||
forgeVersion :FORGE_VERSION,
|
||||
gitVersion :System.getenv("GIT_COMMIT"),
|
||||
buildUrl :System.getenv("BUILD_URL")
|
||||
gitVersion :System.getenv("CIRCLE_SHA1"),
|
||||
buildUrl :System.getenv("CIRCLE_BUILD_URL")
|
||||
])
|
||||
}
|
||||
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
machine:
|
||||
java:
|
||||
version: oraclejdk8
|
||||
dependencies:
|
||||
pre:
|
||||
- gradle --version
|
||||
- sudo add-apt-repository ppa:cwchien/gradle -y
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install gradle
|
||||
- gradle --version
|
||||
override:
|
||||
- gradle dependencies --stacktrace
|
||||
cache_directories:
|
||||
- ~/.gradle
|
||||
general:
|
||||
artifacts:
|
||||
- "build/libs"
|
||||
+5
-3
@@ -30,7 +30,7 @@ configFile.withReader {
|
||||
project.ext.config = new ConfigSlurper().parse prop
|
||||
}
|
||||
//Example: 14.4a-SNAPSHOT-20160820
|
||||
version = rootProject.ext.config.version + rootProject.ext.config.dev_version + ((rootProject.ext.config.snapshot==""||rootProject.ext.config.snapshot=="0"||rootProject.ext.config.snapshot==0)?'':('-SNAPSHOT-'+System.getenv("BUILD_NUMBER")))
|
||||
version = rootProject.ext.config.version + rootProject.ext.config.dev_version + ((rootProject.ext.config.snapshot==""||rootProject.ext.config.snapshot=="0"||rootProject.ext.config.snapshot==0)?'':('-SNAPSHOT-'+System.getenv("CIRCLE_BUILD_NUM")))
|
||||
group = config.group
|
||||
archivesBaseName = rootProject.ext.config.name+"_"+config.minecraft_version
|
||||
|
||||
@@ -72,8 +72,10 @@ processResources {
|
||||
mcVersion:config.minecraft_version,
|
||||
mcFullVersions:config.minecraft_full_versions,
|
||||
forgeVersion:config.forge_version,
|
||||
gitVersion:System.getenv("GIT_COMMIT"),
|
||||
buildUrl:System.getenv("BUILD_URL")
|
||||
//gitVersion:System.getenv("GIT_COMMIT"),
|
||||
//buildUrl:System.getenv("BUILD_URL")
|
||||
gitVersion:System.getenv("CIRCLE_SHA1"),
|
||||
buildUrl:System.getenv("CIRCLE_BUILD_URL")
|
||||
])
|
||||
}
|
||||
task copyResources << {
|
||||
|
||||
Reference in new issue
Block a user