Skip to content

Commit

Permalink
Progress to gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Mindgamesnl committed Aug 22, 2024
1 parent 4ccaa97 commit 46e6089
Show file tree
Hide file tree
Showing 862 changed files with 1,367 additions and 7,210 deletions.
Binary file added .gradle/8.10/checksums/checksums.lock
Binary file not shown.
Empty file.
Binary file not shown.
Binary file added .gradle/8.10/executionHistory/executionHistory.lock
Binary file not shown.
Binary file added .gradle/8.10/fileChanges/last-build.bin
Binary file not shown.
Binary file added .gradle/8.10/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added .gradle/8.10/fileHashes/fileHashes.lock
Binary file not shown.
Binary file added .gradle/8.10/fileHashes/resourceHashesCache.bin
Binary file not shown.
Empty file added .gradle/8.10/gc.properties
Empty file.
Binary file added .gradle/8.5/checksums/checksums.lock
Binary file not shown.
Binary file added .gradle/8.5/checksums/md5-checksums.bin
Binary file not shown.
Binary file added .gradle/8.5/checksums/sha1-checksums.bin
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added .gradle/8.5/executionHistory/executionHistory.bin
Binary file not shown.
Binary file added .gradle/8.5/executionHistory/executionHistory.lock
Binary file not shown.
Binary file added .gradle/8.5/fileChanges/last-build.bin
Binary file not shown.
Binary file added .gradle/8.5/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added .gradle/8.5/fileHashes/fileHashes.lock
Binary file not shown.
Empty file added .gradle/8.5/gc.properties
Empty file.
Binary file added .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
2 changes: 2 additions & 0 deletions .gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Thu Aug 22 23:44:19 CEST 2024
gradle.version=8.10
Binary file added .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file added .gradle/file-system.probe
Binary file not shown.
Empty file added .gradle/vcs-1/gc.properties
Empty file.
60 changes: 60 additions & 0 deletions api/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
plugins {
id 'java'
id 'maven-publish'
id 'io.franzbecker.gradle-lombok' version '3.3.0'
}

group = 'com.craftmend.openaudiomc'
version = "${__oaVersion}" // equivalent to ${oa.version} in Maven

sourceCompatibility = '1.8'
targetCompatibility = '1.8'

repositories {
mavenCentral()
maven {
url 'https://hub.spigotmc.org/nexus/content/groups/public/'
name 'spigotmc-repo'
}
}

dependencies {
implementation "org.jetbrains:annotations:${_jetbrainsAnnotVersion}"
compileOnly "org.projectlombok:lombok:${_lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${_lombokVersion}"
compileOnly "org.spigotmc:spigot-api:${_spigotVersion}"
}

sourceSets {
main {
java {
srcDirs = ['src/main/java', "${buildDir}/delombok"]
}
resources {
srcDirs = ['src/main/resources']
}
}
}

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

task delombok(type: JavaExec) {
main = 'lombok.launch.Main'
classpath = configurations.annotationProcessor + sourceSets.main.compileClasspath
args = ['delombok', 'src/main/java', '-d', "${buildDir}/delombok"]
doFirst {
file("${buildDir}/delombok").mkdirs()
}
}

javadoc {
options.encoding = 'UTF-8'
source = fileTree(dir: "${buildDir}/delombok", include: '**/*.java')
}

jar {
from sourceSets.main.allSource
archiveBaseName.set('openaudiomc-api')
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added api/build/libs/openaudiomc-api-6.10.3.jar
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions api/build/tmp/jar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

103 changes: 0 additions & 103 deletions api/dependency-reduced-pom.xml

This file was deleted.

125 changes: 0 additions & 125 deletions api/pom.xml

This file was deleted.

44 changes: 44 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
plugins {
id 'java'
id 'maven-publish'
}

group = 'com.craftmend.openaudiomc'
version = '1.2'
description = 'The OpenAudioMc Java plugin and Api'

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

ext {
__oaVersion = '6.10.3'

// Dev dependencies
_lombokVersion = '1.18.30'
_lombokMvnVersion = '1.18.20.0'
_jetbrainsAnnotVersion = '24.1.0'

// Production dependencies
_spigotVersion = '1.13.2-R0.1-SNAPSHOT'
_okhttpVersion = '4.7.0'
_velocityApiVersion = '3.0.1'
_stormVersion = 'e1f961b'
_nbtApiVersion = '2.13.2'

// Bungeecord dependencies
_bungeeProxyVersion = 'b23a51825e'
_bungeeProtocolVersion = _bungeeProxyVersion
_bungeeApiVersion = _bungeeProxyVersion

// Integrations
_legacyWorldguardVersion = '6.1'
_worldguardVersion = '7.0.5'
_worldeditVersion = '7.0.0-SNAPSHOT'
_traincartsVersion = '1.15.2-v2-SNAPSHOT'
_bkcommonlibVersion = _traincartsVersion
_litebansVersion = '0.3.4'
_essentialsXVersion = '2.19.0-SNAPSHOT'
_placeholderApiVersion = '2.10.9'
}
Binary file added build/libs/OpenAudioMc-Parent-1.2.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions build/tmp/jar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
org.gradle.jvmargs=-Xmx2048m

# Custom properties can be placed here
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 46e6089

Please sign in to comment.