Skip to content

Commit 589654a

Browse files
committed
Pin FG version range.
1 parent 6ff8afb commit 589654a

File tree

4 files changed

+11
-21
lines changed

4 files changed

+11
-21
lines changed

build.gradle

+5-20
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ plugins {
22
id 'java-gradle-plugin'
33
id 'eclipse'
44
id 'maven-publish'
5-
id 'org.cadixdev.licenser' version '0.6.1'
6-
id 'net.minecraftforge.gradleutils' version '[2.0.10,)'
5+
id 'net.minecraftforge.licenser' version '1.0.1'
6+
id 'net.minecraftforge.gradleutils' version '[2.3,2.4)'
77
id 'com.github.ben-manes.versions' version '0.46.0'
88
}
99

1010
version = gradleutils.getTagOffsetBranchVersion('FG_6.0')
1111
logger.lifecycle('Version: ' + version + ' Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
1212

1313
changelog {
14-
fromTag '6.0'
15-
disableAutomaticPublicationRegistration()
14+
from '6.0'
15+
publishAll = false
1616
}
1717
sourceSets {
1818
common
@@ -52,7 +52,7 @@ tasks.named('sourcesJar', Jar).configure {
5252

5353
repositories {
5454
mavenLocal()
55-
maven { url = 'https://maven.minecraftforge.net/' }
55+
maven gradleutils.forgeMaven
5656
}
5757

5858
license {
@@ -94,21 +94,6 @@ dependencies {
9494
userdevImplementation 'net.minecraftforge:JarJarSelector:0.3.19'
9595
}
9696

97-
//Gradle doesn't add it's own source when doing the API. So lets hack it in!
98-
import org.gradle.plugins.ide.eclipse.model.*
99-
import org.gradle.plugins.ide.eclipse.model.internal.*
100-
project.extensions.eclipse.classpath.file.whenMerged { Classpath cp ->
101-
def gradleSrc = gradle.gradleHomeDir.absolutePath.replace(File.separator, '/') + '/src/'
102-
cp.entries.each { entry ->
103-
if ((entry in AbstractLibrary) && entry.library.file.name.startsWith('gradle-')) {
104-
def type = (entry.library.file.name =~ "^gradle(-(.*))?-(${gradle.gradleVersion})")[0][2]
105-
if (type == 'api') type = 'core-api' //Gradle name is different for cores
106-
if (type == '') type = 'core'
107-
entry.sourcePath = new FileReferenceFactory().fromPath(gradleSrc + type)
108-
}
109-
}
110-
}
111-
11297
gradlePlugin {
11398
plugins {
11499
mcp {

settings.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ pluginManagement {
55
}
66
}
77

8+
plugins {
9+
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0'
10+
}
11+
812
rootProject.name = 'ForgeGradle'

src/common/java/net/minecraftforge/gradle/common/config/UserdevConfigV2.java

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class UserdevConfigV2 extends UserdevConfigV1 {
2424
public static UserdevConfigV2 get(InputStream stream) {
2525
return Utils.fromJson(stream, UserdevConfigV2.class);
2626
}
27+
2728
public static UserdevConfigV2 get(byte[] data) {
2829
return get(new ByteArrayInputStream(data));
2930
}

src/common/java/net/minecraftforge/gradle/common/util/MavenArtifactDownloader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private static File _download(Project project, String artifact, boolean changing
113113
project.getLogger().info("Waiting for download of {} on other thread", artifact);
114114
while (!activeDownload.isDone()) {
115115
// Release the monitor of ACTIVE_DOWNLOADS while waiting on the download;
116-
// when a new download finishes, we'll get notified and we can check whether the download is complete again.
116+
// when a new download finishes, we'll get notified and we can check whether the download is complete again.
117117
ACTIVE_DOWNLOADS.wait();
118118
}
119119
return activeDownload.get();

0 commit comments

Comments
 (0)