This commit is contained in:
Telesphoreo 2021-06-30 19:09:38 -05:00
parent 4afb31cb62
commit f82089db64
2 changed files with 8 additions and 30 deletions

View file

@ -1,6 +1,7 @@
plugins {
id 'java'
id 'maven-publish'
id 'idea'
id 'com.github.johnrengelman.shadow' version '7.0.0'
id 'net.minecrell.plugin-yml.bukkit' version '0.4.0'
}
@ -70,10 +71,10 @@ dependencies {
compileClasspath('io.papermc:paperlib:1.0.6')
compileClasspath('org.reflections:reflections:0.9.12')
compileClasspath('org.javassist:javassist:3.28.0-GA')
implementation('org.projectlombok:lombok:1.18.20')
compileClasspath('org.jetbrains:annotations:21.0.1')
implementation('org.junit.jupiter:junit-jupiter:5.7.2')
compileClasspath('com.mattmalec:Pterodactyl4J:2.BETA_49')
implementation('org.junit.jupiter:junit-jupiter:5.7.2')
implementation('org.projectlombok:lombok:1.18.20')
compileOnly('org.spigotmc:spigot:1.17-R0.1-SNAPSHOT')
compileOnly('com.github.TotalFreedomMC:BukkitTelnet:541e9fdb84')
compileOnly('com.github.TotalFreedomMC:TF-LibsDisguises:48f01cf2fe')
@ -119,17 +120,13 @@ def getGitHash() {
task buildProperties(type: WriteProperties) {
// I know I'm supposed to use {project.rootDir} but I have no idea how to make it work
outputFile = file('/src/main/resources/build.properties')
property 'buildDate', getDate()
property 'buildAuthor', project.property('project.buildAuthor')
property 'buildCodeName', project.property('project.buildCodeName')
property 'buildHead', getGitHash()
property('buildAuthor', project.property('project.buildAuthor'))
property('buildDate', getDate())
property('buildCodeName', project.property('project.buildCodeName'))
property('buildHead', getGitHash())
// buildNumber
}
jar {
include('/src/main/resources/build.properties')
}
shadowJar {
shadowJar {
archiveBaseName.set('TotalFreedomMod')
@ -153,7 +150,7 @@ shadowJar {
configurations = [project.configurations.compileClasspath]
}
tasks.build.dependsOn tasks.buildProperties
tasks.compileJava.finalizedBy tasks.buildProperties
tasks.build.dependsOn tasks.shadowJar
publishing {

View file

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-shared-configuration>
<!--
This file contains additional configuration written by modules in the NetBeans IDE.
The configuration is intended to be shared among all the users of project and
therefore it is assumed to be part of version control checkout.
Without this configuration present, some functionality in the IDE may be limited or fail altogether.
-->
<properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
<!--
Properties that influence various parts of the IDE, especially code formatting and the like.
You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
That way multiple projects can share the same settings (useful for formatting rules for example).
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
<netbeans.hint.jdkPlatform>JDK_11</netbeans.hint.jdkPlatform>
<netbeans.checkstyle.format>true</netbeans.checkstyle.format>
</properties>
</project-shared-configuration>