Last active
December 4, 2015 16:41
-
-
Save marchermans/23bd47490d2d3c26b423 to your computer and use it in GitHub Desktop.
Gradle error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For those who want the bleeding edge | |
buildscript{ | |
repositories { | |
jcenter() | |
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:2.1-SNAPSHOT' | |
} | |
} | |
apply plugin: 'net.minecraftforge.gradle.forge' | |
apply plugin: 'maven' | |
//Buildscript: Armory | |
// Load the properties of this project. | |
ext.configFile = file "build.properties" | |
//Reference the properties inside the project: | |
configFile.withReader { | |
def prop = new Properties() | |
prop.load(it) | |
project.ext.config = new ConfigSlurper().parse prop | |
} | |
//Date formatting helper function | |
def getDate() { | |
def date = new Date() | |
def formattedDate = date.format('dd-MM-yyyy : hh:mm:ss') | |
return formattedDate | |
} | |
def build_mode = config.build_mode | |
//These configurations are needed for uploading to a MavenRepo: | |
configurations { | |
deployerJars | |
} | |
//Initializing the mod environment | |
version = config.mod_version.toString() + "-" + System.getenv().TRAVIS_BUILD_NUMBER.toString() | |
def apiversion = config.api_version.toString() + "-" + System.getenv().TRAVIS_BUILD_NUMBER.toString() | |
if(System.getenv().TRAVIS_BRANCH.toString().contains("Development")) | |
{ | |
version = version + "-SNAPSHOT" | |
apiversion = apiversion + "-SNAPSHOT" | |
} | |
group = "com.SmithsModding.SmithsCore" | |
archivesBaseName = "SmithsCore" | |
minecraft { | |
version = config.minecraft_version+ "-" + config.forge_version | |
runDir = "run/assets" | |
mappings = "snapshot_20151129" | |
//Replacing stuff inside the code: | |
replace "@VERSION@", project.version | |
replace "@MCVERSION@", config.minecraft_version | |
replace "@APIVERSION@", apiversion | |
} | |
dependencies { | |
//Mod dependencies | |
//Maven uploader | |
deployerJars 'org.apache.maven.wagon:wagon-ftp:2.8' | |
} | |
sourceSets { | |
main { | |
resources { | |
srcDir 'resources' | |
} | |
} | |
} | |
//This will process all the resources used during build, and needed for running the project | |
processResources | |
{ | |
//Replaces stuff in mcmod.info, nothing else | |
from(sourceSets.main.resources.srcDirs) { | |
include 'mcmod.info' | |
// replace version and mcversion | |
expand 'version':project.version, 'mcversion':project.minecraft.version | |
} | |
//Copy everything else, thats not the mcmod.info | |
from(sourceSets.main.resources.srcDirs) { | |
exclude 'mcmod.info' | |
} | |
exclude '**/Thumbs.db' | |
} | |
jar { | |
manifest { | |
attributes 'FMLAT': 'SmithsCore_at.cfg' | |
} | |
} | |
task javadocJar(type: Jar, dependsOn: 'javadoc') { | |
from "build/docs/javadoc" | |
classifier "javadoc" | |
} | |
artifacts { | |
archives javadocJar | |
} | |
//Function to upload completed project to the maven repo. | |
uploadArchives { | |
repositories.mavenDeployer { | |
configuration = configurations.deployerJars | |
if (System.getenv().TRAVIS_BRANCH.toString().contains("Development")) { | |
snapshotRepository(url: "ftp://mavenrepo.smithscore.orionminecraft.com") { | |
authentication(userName: "mavenrepo.smithscore.orionminecraft.com|" + System.getenv().FTPUserName.toString(), password: System.getenv().FTPPassword.toString()) | |
} | |
} else { | |
repository(url: "ftp://mavenrepo.smithscore.orionminecraft.com") { | |
authentication(userName: "mavenrepo.smithscore.orionminecraft.com|" + System.getenv().FTPUserName.toString(), password: System.getenv().FTPPassword.toString()) | |
} | |
} | |
pom { | |
groupId = project.group | |
version = project.version | |
artifactId = project.archivesBaseName | |
} | |
pom.project { | |
name project.archivesBaseName | |
packaging 'jar' | |
description 'SmithsCore' | |
url 'https://github.com/SmithsModding/SmithsCore' | |
scm { | |
url 'https://github.com/SmithsModding/SmithsCore' | |
connection 'scm:git:git://github.com/SmithsModding/SmithsCore.git' | |
developerConnection 'scm:git:[email protected]/SmithsModding/SmithsCore.git' | |
} | |
issueManagement { | |
system 'github' | |
url 'https://github.com/SmithsModding/SmithsCore/issues' | |
} | |
developers { | |
developer { | |
id 'OrionDevelopment' | |
name 'Orion' | |
roles { | |
role 'developer' | |
} | |
} | |
} | |
} | |
} | |
} | |
//Task to synchronise two github branches. | |
task('createGithubBranches') << { | |
if ((System.getenv().TRAVIS_BRANCH.toString().contains("Development")) && (build_mode.toString().trim().equals("RELEASE"))) { | |
logger.lifecycle("Uploading code to the corresponding Minecraft version branch. Creating branch if needed.") | |
logger.lifecycle("Creating local branch.") | |
//Creates/Or checks out the new local branch. | |
def createLocalBranchCMD = "git checkout -b Minecraft-" + config.minecraft_version.toString() | |
def createLocalProg = createLocalBranchCMD.execute(); | |
createLocalProg.waitFor() | |
//Adds a tag to the minecraft version specific branch for the version number. | |
logger.lifecycle("Adding version tag.") | |
def addTagCMD = "git -a Version[" + version + "] -m 'Autobuild by Travis CI. Build on: " + getDate() + ".'" | |
def addTagProg = addTagCMD.execute() | |
addTagProg.waitFor() | |
logger.lifecycle("Uploading force push to repo.") | |
def setUrlCMD = "git config remote.origin.url https://" + System.getenv().GitUsername.toString() + ":" + System.getenv().GitPassword.toString() + "@github.com/SmithsModding/SmithsCore" | |
def setURLProg = setUrlCMD.execute() | |
setURLProg.waitFor() | |
def cmd = "git push origin -f Minecraft-" + config.minecraft_version.toString() | |
def prog = cmd.execute() | |
prog.waitFor() | |
logger.lifecycle("Mirrored the code the corresponding minecraft version branch. Current MC Version: " + config.minecraft_version.toString() + ". Branch name: Minecraft-" + config.minecraft_version.toString() + ".") | |
} else { | |
logger.lifecycle("The sync of the branches is not being executed, because we are not releasing a new version.") | |
} | |
} | |
//The external task that executes the uploadAtchives function. | |
task('uploadJars', dependsOn: uploadArchives) { | |
description = "uploads JARs" | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For those who want the bleeding edge | |
buildscript{ | |
repositories { | |
jcenter() | |
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:2.1-SNAPSHOT' | |
} | |
} | |
apply plugin: 'net.minecraftforge.gradle.forge' | |
apply plugin: 'maven' | |
//Buildscript: Armory | |
// Load the properties of this project. | |
ext.configFile = file "build.properties" | |
//Reference the properties inside the project: | |
configFile.withReader { | |
def prop = new Properties() | |
prop.load(it) | |
project.ext.config = new ConfigSlurper().parse prop | |
} | |
//Date formatting helper function | |
def getDate() { | |
def date = new Date() | |
def formattedDate = date.format('dd-MM-yyyy : hh:mm:ss') | |
return formattedDate | |
} | |
def build_mode = config.build_mode | |
//These configurations are needed for uploading to a MavenRepo: | |
configurations { | |
deployerJars | |
} | |
//Initializing the mod environment | |
version = config.mod_version.toString() + "-" + System.getenv().TRAVIS_BUILD_NUMBER.toString() | |
def apiversion = config.api_version.toString() + "-" + System.getenv().TRAVIS_BUILD_NUMBER.toString() | |
if(System.getenv().TRAVIS_BRANCH.toString().contains("Development")) | |
{ | |
version = version + "-SNAPSHOT" | |
apiversion = apiversion + "-SNAPSHOT" | |
} | |
group = "com.SmithsModding.SmithsCore" | |
archivesBaseName = "SmithsCore" | |
minecraft { | |
version = config.minecraft_version+ "-" + config.forge_version | |
runDir = "run/assets" | |
mappings = "snapshot_20151129" | |
//Replacing stuff inside the code: | |
replace "@VERSION@", project.version | |
replace "@MCVERSION@", config.minecraft_version | |
replace "@APIVERSION@", apiversion | |
} | |
dependencies { | |
//Mod dependencies | |
//Maven uploader | |
deployerJars 'org.apache.maven.wagon:wagon-ftp:2.8' | |
} | |
sourceSets { | |
main { | |
java { | |
srcDir 'src' | |
} | |
resources { | |
srcDir 'resources' | |
} | |
} | |
} | |
//This will process all the resources used during build, and needed for running the project | |
processResources | |
{ | |
//Replaces stuff in mcmod.info, nothing else | |
from(sourceSets.main.resources.srcDirs) { | |
include 'mcmod.info' | |
// replace version and mcversion | |
expand 'version':project.version, 'mcversion':project.minecraft.version | |
} | |
//Copy everything else, thats not the mcmod.info | |
from(sourceSets.main.resources.srcDirs) { | |
exclude 'mcmod.info' | |
} | |
exclude '**/Thumbs.db' | |
} | |
jar { | |
manifest { | |
attributes 'FMLAT': 'SmithsCore_at.cfg' | |
} | |
} | |
task devJar(type: Jar, dependsOn: 'classes') { | |
from(sourceSets.main.output) { | |
include '**' | |
} | |
extension = 'jar' | |
classifier = 'dev' | |
} | |
task javadocJar(type: Jar, dependsOn: 'javadoc') { | |
from "build/docs/javadoc" | |
classifier "javadoc" | |
} | |
artifacts { | |
archives devJar | |
archives javadocJar | |
} | |
//Function to upload completed project to the maven repo. | |
uploadArchives { | |
repositories.mavenDeployer { | |
configuration = configurations.deployerJars | |
if (System.getenv().TRAVIS_BRANCH.toString().contains("Development")) { | |
snapshotRepository(url: "ftp://mavenrepo.smithscore.orionminecraft.com") { | |
authentication(userName: "mavenrepo.smithscore.orionminecraft.com|" + System.getenv().FTPUserName.toString(), password: System.getenv().FTPPassword.toString()) | |
} | |
} else { | |
repository(url: "ftp://mavenrepo.smithscore.orionminecraft.com") { | |
authentication(userName: "mavenrepo.smithscore.orionminecraft.com|" + System.getenv().FTPUserName.toString(), password: System.getenv().FTPPassword.toString()) | |
} | |
} | |
pom { | |
groupId = project.group | |
version = project.version | |
artifactId = project.archivesBaseName | |
} | |
pom.project { | |
name project.archivesBaseName | |
packaging 'jar' | |
description 'SmithsCore' | |
url 'https://github.com/SmithsModding/SmithsCore' | |
scm { | |
url 'https://github.com/SmithsModding/SmithsCore' | |
connection 'scm:git:git://github.com/SmithsModding/SmithsCore.git' | |
developerConnection 'scm:git:[email protected]/SmithsModding/SmithsCore.git' | |
} | |
issueManagement { | |
system 'github' | |
url 'https://github.com/SmithsModding/SmithsCore/issues' | |
} | |
developers { | |
developer { | |
id 'OrionDevelopment' | |
name 'Orion' | |
roles { | |
role 'developer' | |
} | |
} | |
} | |
} | |
} | |
} | |
//Task to synchronise two github branches. | |
task('createGithubBranches') << { | |
if ((System.getenv().TRAVIS_BRANCH.toString().contains("Development")) && (build_mode.toString().trim().equals("RELEASE"))) { | |
logger.lifecycle("Uploading code to the corresponding Minecraft version branch. Creating branch if needed.") | |
logger.lifecycle("Creating local branch.") | |
//Creates/Or checks out the new local branch. | |
def createLocalBranchCMD = "git checkout -b Minecraft-" + config.minecraft_version.toString() | |
def createLocalProg = createLocalBranchCMD.execute(); | |
createLocalProg.waitFor() | |
//Adds a tag to the minecraft version specific branch for the version number. | |
logger.lifecycle("Adding version tag.") | |
def addTagCMD = "git -a Version[" + version + "] -m 'Autobuild by Travis CI. Build on: " + getDate() + ".'" | |
def addTagProg = addTagCMD.execute() | |
addTagProg.waitFor() | |
logger.lifecycle("Uploading force push to repo.") | |
def setUrlCMD = "git config remote.origin.url https://" + System.getenv().GitUsername.toString() + ":" + System.getenv().GitPassword.toString() + "@github.com/SmithsModding/SmithsCore" | |
def setURLProg = setUrlCMD.execute() | |
setURLProg.waitFor() | |
def cmd = "git push origin -f Minecraft-" + config.minecraft_version.toString() | |
def prog = cmd.execute() | |
prog.waitFor() | |
logger.lifecycle("Mirrored the code the corresponding minecraft version branch. Current MC Version: " + config.minecraft_version.toString() + ". Branch name: Minecraft-" + config.minecraft_version.toString() + ".") | |
} else { | |
logger.lifecycle("The sync of the branches is not being executed, because we are not releasing a new version.") | |
} | |
} | |
//The external task that executes the uploadAtchives function. | |
task('uploadJars', dependsOn: uploadArchives) { | |
description = "uploads JARs" | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\marcf\Documents\Development\Minecraft\SmithsCore>gradlew build | |
Downloading https://services.gradle.org/distributions/gradle-2.9-bin.zip | |
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... | |
Unzipping C:\Users\marcf\.gradle\wrapper\dists\gradle-2.9-bin\ebaspjjvvkuki3ldbldx7hexd\gradle-2.9-bin.zip to C:\Users\marcf\.gradle\wrapper\dists\gradle-2.9-bin\ebaspjjvvkuki3ldbldx7hexd | |
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.9/userguide/gradle_daemon.html. | |
################################################# | |
ForgeGradle 2.1-SNAPSHOT-12e92a7 | |
https://github.com/MinecraftForge/ForgeGradle | |
################################################# | |
Powered by MCP unknown | |
http://modcoderpack.com | |
by: Searge, ProfMobius, Fesh0r, | |
R4wk, ZeuX, IngisKahn, bspkrs | |
################################################# | |
Found AccessTransformer: SmithsCore_at.cfg | |
:deobfCompileDummyTask | |
:deobfProvidedDummyTask | |
:compileApiJava UP-TO-DATE | |
:processApiResources UP-TO-DATE | |
:apiClasses UP-TO-DATE | |
:sourceMainJava | |
:compileJava | |
warning: [options] bootstrap class path not set in conjunction with -source 1.6 | |
Note: Some input files use unchecked or unsafe operations. | |
Note: Recompile with -Xlint:unchecked for details. | |
1 warning | |
:processResources | |
:classes | |
:devJar | |
:jar | |
:javadoc | |
:javadocJar | |
:compileTestJava UP-TO-DATE | |
:processTestResources UP-TO-DATE | |
:testClasses UP-TO-DATE | |
:test UP-TO-DATE | |
:extractMcpData SKIPPED | |
:extractMcpMappings SKIPPED | |
:getVersionJson | |
:extractUserdev | |
:genSrgs SKIPPED | |
:reobfJar | |
:extractRangemapSrc | |
:retromapSources | |
remapping source... | |
:sourceJar | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
Failed to capture snapshot of input files for task 'sourceJar' during up-to-date check. See stacktrace for details. | |
> java.io.FileNotFoundException: com\SmithsModding\SmithsCore\Client\GUI\Components\IGUIComponent.java (Het systeem kan het opgegeven pad niet vinden) | |
* Try: | |
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. | |
BUILD FAILED | |
Total time: 2 mins 50.444 secs | |
C:\Users\marcf\Documents\Development\Minecraft\SmithsCore> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment