Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
verify-gradle-wrapper:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0

build:
Expand All @@ -22,8 +22,8 @@ jobs:
matrix:
jdk: [11, 15]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
~/.gradle/caches
Expand All @@ -32,7 +32,7 @@ jobs:
restore-keys: |
${{ runner.os }}-jdk-${{ matrix.jdk }}-gradlewrapper-${{ hashFiles('**/gradle-wrapper.properties') }}-gradlescripts-
- name: Set up JDK
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
with:
distribution: adopt
java-version: ${{ matrix.jdk }}
Expand Down
8 changes: 4 additions & 4 deletions MappingTest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ plugins {
id 'maven-publish'
//id 'org.minimallycorrect.mixin.gradle-plugin' version '0.0.6-SNAPSHOT'
id 'dev.minco.mapping' version '0.0.1-SNAPSHOT'
id("dev.minco.gradle.defaults-plugin") version "0.2.67"
id("dev.minco.gradle.defaults-plugin") version "0.2.81"
}

import dev.minco.mapping.GradleExtensions
Expand Down Expand Up @@ -58,7 +58,7 @@ repositories {
}

def mcMappedAttribute = mapping.getMappingArtifactForTarget("net.minecraft")
ext.aValidAttrValueWhichCanBeTransformedToRequired = "net.fabricmc:intermediary:1.21.1:intermediary"
ext.aValidAttrValueWhichCanBeTransformedToRequired = "net.fabricmc:intermediary:1.21.11:intermediary"
ext.moduleMetadataAttrValue = ext.aValidAttrValueWhichCanBeTransformedToRequired
ext.setComponentMetadataRule = false
ext.attrDefaultValue = null
Expand Down Expand Up @@ -96,12 +96,12 @@ System.err.println("default attr value overridden: " + ext.attrDefaultValue)
System.err.println("This build is expected to fail with the error \"TODO: Actually transform.\". If build succeeds, transforms weren't ran as expected.\n")

mapping {
def yarn115 = "net.fabricmc:yarn:1.21.1+build.3:v2"
def yarn115 = "net.fabricmc:yarn:1.21.11-pre5+build.1:v2"
registerMapping(project, "net.minecraft", "net.fabricmc:intermediary:1.15.2")
registerMapping(project, "net.minecraft", yarn115)
registerNamespaceTranslator {
if (it == "$yarn115:intermediary") {
return "net.fabricmc:intermediary:1.21.1:intermediary"
return "net.fabricmc:intermediary:1.21.11:intermediary"
}
}
registerDefaultMappedConfiguration(project, "net.minecraft", "$yarn115:named")
Expand Down
28 changes: 14 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
plugins {
id 'java-library'
id 'maven-publish'
id "com.gradle.plugin-publish" version "1.2.2"
id "com.gradle.plugin-publish" version "1.3.1"
id 'java-gradle-plugin'
id("dev.minco.gradle.defaults-plugin") version "0.2.67"
id("dev.minco.gradle.defaults-plugin") version "0.2.81"
}

sourceSets.main.java.srcDirs = files('src')
Expand Down Expand Up @@ -32,22 +32,22 @@ repositories {

dependencies {
compileOnly "org.jetbrains:annotations:24.1.0"
compileOnly "org.checkerframework:checker-qual:3.47.0"
compileOnly "org.checkerframework:checker-qual:3.53.0"
testImplementation "junit:junit:4.13.2"
// TODO: actually test Mixin at the same time
//api 'org.minimallycorrect.mixin:Mixin:0.0.6'
implementation 'net.fabricmc:tiny-remapper:0.10.4'
implementation 'net.fabricmc:tiny-remapper:0.12.3'
implementation 'net.fabricmc:tiny-mappings-parser:0.3.0+build.17'
implementation 'com.google.guava:guava:33.3.0-jre'
implementation 'com.google.guava:guava:33.5.0-jre'

compileOnly 'org.projectlombok:lombok:1.18.34'
annotationProcessor 'org.projectlombok:lombok:1.18.34'
testCompileOnly 'org.projectlombok:lombok:1.18.34'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.34'
compileOnly 'org.projectlombok:lombok:1.18.42'
annotationProcessor 'org.projectlombok:lombok:1.18.42'
testCompileOnly 'org.projectlombok:lombok:1.18.42'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.42'

// https://junit.org/junit5/docs/current/user-guide/#running-tests-build
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.14.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.14.2")
}

test {
Expand All @@ -64,10 +64,10 @@ allprojects {
resolutionStrategy {
failOnVersionConflict()

force('org.checkerframework:checker-qual:3.47.0')
force('com.google.guava:guava:33.3.0-jre')
force('org.checkerframework:checker-qual:3.53.0')
force('com.google.guava:guava:33.5.0-jre')
force('com.google.code.findbugs:jsr305:3.0.2')
def asmVer = '9.7'
def asmVer = '9.9.1'
force("org.ow2.asm:asm:$asmVer")
force("org.ow2.asm:asm-tree:$asmVer")
force("org.ow2.asm:asm-analysis:$asmVer")
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading