-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from TechnicallyCoded/dev
Support Java 1.8 while retaining gradle builds & a direct folia api dependency on it's sub-module.
- Loading branch information
Showing
23 changed files
with
458 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,4 +45,5 @@ bin/ | |
/.idea/ | ||
/gradle/ | ||
gradlew | ||
gradlew.bat | ||
gradlew.bat | ||
/target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,69 @@ | ||
plugins { | ||
id 'java' | ||
buildscript { | ||
ext { | ||
revision = '0.2.4' | ||
} | ||
} | ||
|
||
group 'com.tcoded' | ||
version '0.2.3' | ||
allprojects { | ||
apply plugin: 'java' | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
version = '0.2.5' | ||
|
||
repositories { | ||
|
||
mavenCentral() | ||
|
||
maven { | ||
url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' | ||
} | ||
|
||
maven { | ||
url 'https://hub.spigotmc.org/nexus/content/repositories/public/' | ||
} | ||
|
||
maven { | ||
url = "https://repo.papermc.io/repository/maven-public/" | ||
} | ||
|
||
maven { | ||
url = "https://nexuslite.gcnt.net/repos/paper/" | ||
} | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { | ||
url 'https://repo.papermc.io/repository/maven-public/' | ||
java { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
|
||
dependencies { | ||
implementation 'org.jetbrains:annotations:23.0.0' | ||
|
||
testImplementation platform('org.junit:junit-bom:5.9.1') | ||
testImplementation 'org.junit.jupiter:junit-jupiter' | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation 'dev.folia:folia-api:1.19.4-R0.1-SNAPSHOT' | ||
implementation 'org.jetbrains:annotations:23.0.0' | ||
group 'com.tcoded' | ||
|
||
def baseName | ||
|
||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' | ||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' | ||
subprojects.each { subproject -> evaluationDependsOn(subproject.path)} | ||
tasks.register('allJar', Jar) { | ||
dependsOn 'compileJava' | ||
dependsOn 'jar' | ||
dependsOn subprojects.tasks['build'] | ||
baseName = 'allJar' | ||
subprojects.each { subproject -> | ||
from subproject.configurations.archives.allArtifacts.files.collect { | ||
zipTree(it) | ||
} | ||
} | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
artifacts { | ||
archives allJar | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
group = 'com.tcoded.folialib' | ||
|
||
dependencies { | ||
compileOnly 'org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT' | ||
|
||
implementation(project(":platform:common")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
group = 'com.tcoded.folialib' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
group = 'com.tcoded.folialib.platform' | ||
|
||
dependencies { | ||
compileOnly 'org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT' | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../tcoded/folialib/wrapper/WrappedTask.java → ...ed/folialib/wrapper/task/WrappedTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.tcoded.folialib.wrapper; | ||
package com.tcoded.folialib.wrapper.task; | ||
|
||
import org.bukkit.plugin.Plugin; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
group = 'com.tcoded.folialib.platform' | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
|
||
dependencies { | ||
compileOnly "dev.folia:folia-api:1.19.4-R0.1-SNAPSHOT" | ||
|
||
implementation(project(":common")) | ||
implementation(project(":platform:common")) | ||
} |
Oops, something went wrong.