mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +00:00
Add fabric builds for older MC versions & add checkstyle (#449)
* Remove instance getters, improve command logic, register APi * Publish multiple fabric builds, enforce checkstyle * Bump guava * Bump to 4.4.2
This commit is contained in:
1 parent
51baf196b3
commit
c9f5262292
219 files changed
+8032
-1392
No files matched your search
+7
-10
@@ -4,6 +4,7 @@ plugins {
|
||||
id 'com.github.johnrengelman.shadow' version '8.1.1'
|
||||
id 'org.cadixdev.licenser' version '0.6.1' apply false
|
||||
id 'org.ajoberstar.grgit' version '5.2.0'
|
||||
id 'checkstyle'
|
||||
id 'maven-publish'
|
||||
id 'java'
|
||||
}
|
||||
@@ -11,7 +12,7 @@ plugins {
|
||||
group 'net.william278'
|
||||
version "$ext.plugin_version${versionMetadata()}"
|
||||
description "$ext.plugin_description"
|
||||
defaultTasks 'licenseFormat', 'build'
|
||||
defaultTasks 'licenseFormat', 'check', 'build'
|
||||
|
||||
ext {
|
||||
set 'version', version.toString()
|
||||
@@ -20,16 +21,12 @@ ext {
|
||||
set 'jedis_version', jedis_version.toString()
|
||||
set 'sqlite_driver_version', sqlite_driver_version.toString()
|
||||
set 'mysql_driver_version', mysql_driver_version.toString()
|
||||
|
||||
set 'fabric_minecraft_version', fabric_minecraft_version.toString()
|
||||
set 'fabric_yarn_mappings', fabric_yarn_mappings.toString()
|
||||
set 'fabric_loader_version', fabric_loader_version.toString()
|
||||
set 'fabric_api_version', fabric_api_version.toString()
|
||||
}
|
||||
|
||||
allprojects {
|
||||
apply plugin: 'com.github.johnrengelman.shadow'
|
||||
apply plugin: 'org.cadixdev.licenser'
|
||||
apply plugin: 'checkstyle'
|
||||
apply plugin: 'java'
|
||||
|
||||
compileJava.options.encoding = 'UTF-8'
|
||||
@@ -65,16 +62,16 @@ allprojects {
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.3'
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
license {
|
||||
header = rootProject.file('HEADER')
|
||||
include '**/*.java'
|
||||
newLine = true
|
||||
}
|
||||
|
||||
checkstyle {
|
||||
toolVersion = '10.12.0'
|
||||
}
|
||||
|
||||
processResources {
|
||||
filesMatching(['**/*.json', '**/*.yml']) {
|
||||
filter ReplaceTokens as Class, beginToken: '${', endToken: '}',
|
||||
|
||||
Reference in new issue
Block a user