Skip to content

Commit 9d0844b

Browse files
committed
build with gradle 7, since we're all forced into J16 workspaces now...
1 parent e94de85 commit 9d0844b

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ subprojects {
2929
}
3030

3131
dependencies {
32-
"compileOnlyApi"("org.checkerframework:checker-qual:3.12.0")
32+
"compileOnlyApi"("org.checkerframework:checker-qual:3.13.0")
3333
}
3434

3535
val indraGit = extensions.getByType(net.kyori.indra.git.IndraGitExtension::class)

convention/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tasks.withType(GroovyCompile::class).configureEach {
1111
dependencies {
1212
api(project(":spongegradle-plugin-development"))
1313
implementation(localGroovy())
14-
api("net.kyori:indra-common:2.0.2")
14+
api("net.kyori:indra-common:2.0.4")
1515
api("gradle.plugin.org.cadixdev.gradle:licenser:0.6.0")
1616
api("com.google.code.gson:gson:2.8.6")
1717
}

convention/src/main/groovy/org/spongepowered/gradle/convention/SpongeConventionPlugin.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import org.gradle.api.GradleException;
3737
import org.gradle.api.Plugin;
3838
import org.gradle.api.Project;
39+
import org.gradle.api.java.archives.Attributes;
3940
import org.gradle.api.java.archives.Manifest;
4041
import org.gradle.api.plugins.JavaPlugin;
4142
import org.gradle.api.plugins.JavaPluginConvention;
@@ -105,14 +106,13 @@ public void apply(final Project target) {
105106

106107
private void configureJarTasks(final Manifest manifest, final IndraGitExtension git) {
107108
// Add some standard attributes
108-
final Map<String, Object> attributes = new HashMap<>();
109-
attributes.put("Specification-Title", this.project.getName());
110-
attributes.put("Specification-Vendor", "SpongePowered");
111-
attributes.put("Specification-Version", this.project.getVersion());
112-
attributes.put("Implementation-Title", this.project.getName());
113-
attributes.put("Implementation-Vendor", "SpongePowered");
114-
attributes.put("Implementation-Version", this.project.getVersion());
115-
manifest.attributes(attributes);
109+
final Attributes attributes = manifest.getAttributes();
110+
attributes.putIfAbsent("Specification-Title", this.project.getName());
111+
attributes.putIfAbsent("Specification-Vendor", "SpongePowered");
112+
attributes.putIfAbsent("Specification-Version", this.project.getVersion());
113+
attributes.putIfAbsent("Implementation-Title", this.project.getName());
114+
attributes.putIfAbsent("Implementation-Vendor", "SpongePowered");
115+
attributes.putIfAbsent("Implementation-Version", this.project.getVersion());
116116
git.applyVcsInformationToManifest(manifest);
117117
}
118118

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

plugin-development/src/functionalTest/java/org/spongepowered/gradle/plugin/SpongePluginPluginFunctionalTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ Stream<DynamicTest> functionalTests(@TempDir final Path runDirectory) {
139139
// Test variants
140140
final String[][] variants = {
141141
{"6.8.3", ""},
142-
{"7.0", ""},
142+
{"7.0.2", ""},
143143
{"6.8.3", "--configuration-cache"},
144-
{"7.0", "--configuration-cache"},
144+
{"7.0.2", "--configuration-cache"},
145145
};
146146

147147
// The actual tests to execute

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pluginManagement {
66
}
77

88
plugins {
9-
val indraVersion = "2.0.2"
9+
val indraVersion = "2.0.4"
1010
id("com.gradle.plugin-publish") version "0.14.0"
1111
id("net.kyori.indra") version indraVersion
1212
id("net.kyori.indra.license-header") version indraVersion

0 commit comments

Comments
 (0)