mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-11-08 10:09:36 +01:00
Break Gradle to not check for Java versions
This commit is contained in:
parent
eb7c177f3a
commit
730df46e47
@ -29,7 +29,6 @@ allprojects {
|
|||||||
implementation.extendsFrom(library)
|
implementation.extendsFrom(library)
|
||||||
|
|
||||||
libraryJ8
|
libraryJ8
|
||||||
library.extendsFrom(libraryJ8)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
jvmdg.dg(configurations.libraryJ8)
|
jvmdg.dg(configurations.libraryJ8)
|
||||||
@ -41,6 +40,10 @@ allprojects {
|
|||||||
}
|
}
|
||||||
maven {
|
maven {
|
||||||
url = "https://repo.viaversion.com"
|
url = "https://repo.viaversion.com"
|
||||||
|
metadataSources {
|
||||||
|
// Cursed hack to prevent Gradle checking for Java versions
|
||||||
|
artifact()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,6 +76,7 @@ allprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
library "org.yaml:snakeyaml:${project.snake_yml_version}"
|
library "org.yaml:snakeyaml:${project.snake_yml_version}"
|
||||||
|
library project.files(configurations.libraryJ8)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -164,7 +168,7 @@ subprojects {
|
|||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
archiveFileName = jar.archiveFileName
|
archiveFileName = jar.archiveFileName
|
||||||
configurations = [project.configurations.library, project.configurations.libraryJ8] // Include the dependencies from the include configuration
|
configurations = [project.configurations.library] // Include the dependencies from the include configuration
|
||||||
duplicatesStrategy DuplicatesStrategy.EXCLUDE
|
duplicatesStrategy DuplicatesStrategy.EXCLUDE
|
||||||
|
|
||||||
// Prevent conflicts with Forge's weird service loading
|
// Prevent conflicts with Forge's weird service loading
|
||||||
|
Loading…
Reference in New Issue
Block a user