-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile #189
Comments
Removing the CurseForge/Modrinth publishing and changelog generation parts of the build script should resolve this. |
This doesn't work. New error: 'org.gradle.api.Action dev.galacticraft.gradle.commons.plugin.TeamConstants$Repositories$Hosted.legacyCommon()' my changes: //changelog { maven { //modpublishing { |
@zeng-github01 Try this (by @Rishum-P): build.gradleplugins {
id 'java'
id 'eclipse'
id 'org.cadixdev.licenser' version '0.6.1'
id 'com.diffplug.spotless' version '6.13.0'
id 'net.minecraftforge.gradle' version '6.+'
id 'net.galacticraft.internal.legacy' version '1.0.5'
id 'nexus-publishing' version '2.1'
}
group = "dev.galacticraft"
archivesBaseName = "Galacticraft"
version = "${mod_version}${version_suffix}"
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
repositories {
mavenCentral()
maven {
name 'galacticraft'
url 'https://maven.galacticraft.net/repository/legacy-common/'
}
}
dependencies {
minecraft "net.minecraftforge:forge:${MC_VERSION}-${forge_version}"
compileRequired fg.deobf('mod.dependency:mekanism:9.8.3.390')
compileRequired fg.deobf('mod.dependency:industrialcraft-2:2.8.222-ex112')
compileRequired fg.deobf('mod.dependency:buildcraft-api:7.99.24.8')
compileOnly fg.deobf('mod.dependency:biomes-o-plenty:7.0.1.2445')
compileOnly fg.deobf('mod.dependency:appliedenergistics2:rv6-stable-7')
compileOnly fg.deobf('mod.dependency:redstoneflux:2.1.1.1')
compileOnly fg.deobf('mod.dependency:actuallyadditions:r152')
compileOnly fg.deobf('mod.dependency:playerapi:1.1')
compileOnly fg.deobf('mod.dependency:journeymap:5.7.1')
compileOnly fg.deobf('mod.dependency:jei:4.16.1.302:api')
runtimeOnly fg.deobf('mod.dependency:jei:4.16.1.302')
// Project lombok
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
testCompileOnly 'org.projectlombok:lombok:1.18.24'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
}
spotless {
enforceCheck false
java {
target 'src/*/java/micdoodle8/mods/**/*.java'
endWithNewline()
trimTrailingWhitespace()
removeUnusedImports()
indentWithSpaces()
}
}
license {
header = project.file('etc/HEADER')
properties {
company = 'Team Galacticraft'
year = Calendar.getInstance().get(Calendar.YEAR);
}
ignoreFailures = true
include '**/*.java'
}
clean {
def filteredDelete = new HashSet<>()
for (def toDelete : getDelete()) {
for (def f : file(toDelete).listFiles()) {
if (f.getName() != "fg_cache") {
filteredDelete.add(f)
}
}
}
setDelete(filteredDelete)
}
tokens {
replace('version', version)
}
maven {
excludeDependencies('forge', 'jei')
artifacts(mavenJar, deobfJar, sourcesJar)
}
tasks.withType(GenerateModuleMetadata).configureEach {
enabled = false
} |
build java: official java 1.8 latest |
Removing |
This works, but for me it needed a little change |
Forge Version
14.23.5.2860
Galacticraft Version
github source
Log or Crash Report
Cause: dev.galacticraft.gradle.commons.plugin.TeamConstants$Repositories$Hosted.legacyCommon()Lorg/gradle/api/Action;
dev.galacticraft.gradle.commons.plugin.TeamConstants$Repositories$Hosted.legacyCommon()Lorg/gradle/api/Action;
Reproduction steps
1.Fork this repo
2.clone it to local
The text was updated successfully, but these errors were encountered: