Posted January 8, 20178 yr Hey there! So I'm trying to decomplie the 'The One Probe' mod so I can add proper intergration for it.. However my build.gradle seems to be throwing this: Error:Could not GET 'https://libraries.minecraft.net/mcjty/theoneprobe/TheOneProbe/1.11-1.3.4-47/TheOneProbe-1.11-1.3.4-47.pom'. Received status code 403 from server: Forbidden Enable Gradle 'offline mode' and sync project Trying to Enable Offline Mode just throws the opposite execption, here is my build.gradle [i have NEVER worked with gradle so, uh I don't know proper syntax. Sorry about that ] buildscript { repositories { jcenter() maven { url = "http://files.minecraftforge.net/maven" } maven { // TOP name 'tterrag maven' url "http://maven.tterrag.com/" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. version = "0.0.25" //r-b-a : 25 alpha commits group = "com.lambda.plentifulutilities" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "plentifulutilities" sourceCompatibility = targetCompatibility = "1.8" // Need this here so eclipse task generates correctly. compileJava { sourceCompatibility = targetCompatibility = "1.8" } minecraft { version = "1.11.2-13.20.0.2201" runDir = "run" // the mappings can be changed at any time, and must be in the following format. // snapshot_YYYYMMDD snapshot are built nightly. // stable_# stables are built at the discretion of the MCP team. // Use non-default mappings at your own risk. they may not always work. // simply re-run your setup task after changing the mappings to update your workspace. mappings = "snapshot_20161220" // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. } dependencies { deobfCompile "mcjty.theoneprobe:TheOneProbe:1.11-1.3.4-47" // you may put jars on which you depend on in ./libs // or you may define them like so.. //compile "some.group:artifact:version:classifier" //compile "some.group:artifact:version" // real examples //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime. //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided, // except that these dependencies get remapped to your current MCP mappings //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev' //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // for more info... // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html } processResources { // this will ensure that this task is redone when the versions change. inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version // replace 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 except the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } } Thanks! Relatively new to modding. Currently developing: https://github.com/LambdaXV/DynamicGenerators
January 8, 20178 yr You've added the Maven repository for The One Probe in the wrong place. The buildscript block is only for dependencies of the buildscript, you need to create a repositories block in the main body for dependencies of the project. You can see an example here. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
January 8, 20178 yr Author Hmm after refreshing my gradle project all of my libraries don't exist anymore..? I'm running the setupDecompWorkspace again.. Was this supposed to happen? Edit: After the decomp the libraries are back.. Thanks for your help. Relatively new to modding. Currently developing: https://github.com/LambdaXV/DynamicGenerators
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.