Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Gradle can't find net.minecraft:server:1.16.5_mapped_official_1.16.5.


BlockyPenguin
 Share

Recommended Posts

I'm attempting to use FG to download the vanilla Minecraft server.
Gradle throws this massive error: hastebin
 

build.gradle:

Spoiler

buildscript {
  repositories {
    maven { url = 'https://maven.minecraftforge.net' }
    maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
    mavenCentral()

    dependencies {
      classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.+', changing: true
      classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
    }
  }
}

apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.spongepowered.mixin'

group = 'com.blockypenguin'
archivesBaseName = 'spongecake'
version = '0.0.1'

def minecraftVersion = '1.16.5'
def mixinJson = "spongecake.refmap.json"

java.toolchain.languageVersion = JavaLanguageVersion.of(8)

minecraft {
  mappings channel: 'official', version: minecraftVersion

  runs {
    server {
      workingDirectory project.file('run')
      property 'forge.logging.markers', 'REGISTRIES'
      property 'forge.logging.console.level', 'debug'

      arg "-mixin.config=$mixinJson"
    }
  }
}

mixin { add sourceSets.main, mixinJson }

repositories {
  maven { url = 'https://files.minecraftforge.net/maven' }
  mavenCentral()
}

dependencies {
  minecraft "net.minecraft:server:$minecraftVersion"
  annotationProcessor 'org.spongepowered:mixin:0.8:processor'
}

jar {
  manifest {
    attributes([
      "Specification-Title"     : "SpongeCake Minecraft Server $minecraftVersion",
      "Specification-Vendor"    : "BlockyPenguin",
      "Specification-Version"   : "1",
      "Implementation-Title"    : project.name,
      "Implementation-Version"  : project.version,
      "Implementation-Vendor"   : "BlockyPenguin",
      "MixinConfigs"            : mixinJson,
      "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
    ])
  }
}

jar.finalizedBy('reobfJar')

 

Today (22/10/20) I reached 100 posts!

I'm probably more excited than I should be for something so realistically minor...

Link to comment
Share on other sites

6 hours ago, diesieben07 said:

What on earth are you trying to achieve here?

Modifying vanilla with Mixins, no Forge, no Fabric, just plain old vanilla.

I know, it's not recommended, but it's a personal project of mine, just to see where it could lead.

I have no intentions of making anything fancy, i.e. "real" modified servers like paper or sponge, it's more of a testing ground.

Any ideas as to how to fix this?

Today (22/10/20) I reached 100 posts!

I'm probably more excited than I should be for something so realistically minor...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.