Skip to content

Commit

Permalink
Release v1.2.1 for MC 1.19.2 Forge
Browse files Browse the repository at this point in the history
  • Loading branch information
cpburnz committed Sep 5, 2024
1 parent 27b40f8 commit 8ea2306
Show file tree
Hide file tree
Showing 4 changed files with 201 additions and 179 deletions.
16 changes: 4 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ plugins {
id 'com.github.johnrengelman.shadow' version '7.1.2'
}

version = mod_version
// Project settings.
group = mod_group_id
version = mod_version

base {
archivesName = 'Prometheus-Exporter'
}

// Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17.
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
println 'Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch')
println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}"

minecraft {
// The mappings can be changed at any time and must be in the following format.
Expand Down Expand Up @@ -92,16 +93,6 @@ minecraft {
source sourceSets.main
}
}

// TODO: Figure out testing dependencies.
dependencies {
// Every shadowed dependency has to be relisted here for the runClient and
// runServer commands to work.
runtimeOnly 'io.prometheus:simpleclient:0.16.0'
runtimeOnly 'io.prometheus:simpleclient_common:0.16.0'
runtimeOnly 'io.prometheus:simpleclient_httpserver:0.16.0'
runtimeOnly 'io.prometheus:simpleclient_hotspot:0.16.0'
}
}

client {
Expand Down Expand Up @@ -140,6 +131,7 @@ configurations {
shadowImplementation
implementation.extendsFrom shadowImplementation
shadow.extendsFrom shadowImplementation
minecraftLibrary.extendsFrom shadowImplementation
}

repositories {
Expand Down
Loading

0 comments on commit 8ea2306

Please sign in to comment.