Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #107 from Shynixn/development
Browse files Browse the repository at this point in the history
Merge changes to Master --release
  • Loading branch information
Shynixn authored Dec 9, 2022
2 parents f5795e2 + 35675f6 commit 37e6561
Show file tree
Hide file tree
Showing 15 changed files with 985 additions and 15 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ RUN java -jar BuildTools.jar --rev 1.17.1 --remapped
RUN java -jar BuildTools.jar --rev 1.18 --remapped
RUN java -jar BuildTools.jar --rev 1.18.2 --remapped
RUN java -jar BuildTools.jar --rev 1.19 --remapped
RUN java -jar BuildTools.jar --rev 1.19.3 --remapped

# 3. Build plugin for 1.8 - 1.17 with jdk17
FROM amazoncorretto:17 AS plugin-jdk17
Expand All @@ -44,7 +45,7 @@ RUN ./gradlew build pluginJar --no-daemon
# 4. Launch a minecraft server with jdk17 and plugin
FROM amazoncorretto:17
# Change to the current plugin version present in build.gradle
ENV PLUGIN_VERSION=2.8.0
ENV PLUGIN_VERSION=2.9.0
# Change to the server version you want to test.
ENV SERVER_VERSION=spigot-1.19.jar
# Port of the Minecraft Server.
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ StructureBlockLib is a bukkit API and implementation for handling structures on
* API to save or load structures without an actual structure block.
* Asynchronous implementation and API.
* Fluent API.
* Version support 1.9.R1 - 1.19.R1
* Version support 1.9.R1 - 1.19.R2
* Java support 8 - Latest

## Donation
Expand All @@ -35,15 +35,15 @@ Support development with a small tip :heart: :coffee:.
<dependency>
<groupId>com.github.shynixn.structureblocklib</groupId>
<artifactId>structureblocklib-bukkit-api</artifactId>
<version>2.8.0</version>
<version>2.9.0</version>
<scope>provided</scope>
</dependency>
```
**Gradle**

```xml
dependencies {
compileOnly("com.github.shynixn.structureblocklib:structureblocklib-bukkit-api:2.8.0")
compileOnly("com.github.shynixn.structureblocklib:structureblocklib-bukkit-api:2.9.0")
}
```

Expand Down Expand Up @@ -277,8 +277,8 @@ structureBlock.update();
**plugin.yml**
```yaml
libraries:
- com.github.shynixn.structureblocklib:structureblocklib-bukkit-api:2.8.0
- com.github.shynixn.structureblocklib:structureblocklib-bukkit-core:2.8.0
- com.github.shynixn.structureblocklib:structureblocklib-bukkit-api:2.9.0
- com.github.shynixn.structureblocklib:structureblocklib-bukkit-core:2.9.0
```
### For version < 1.17
Expand All @@ -297,22 +297,22 @@ go with the option above instead. There are several tutorials on spigotmc.org.
<dependency>
<groupId>com.github.shynixn.structureblocklib</groupId>
<artifactId>structureblocklib-bukkit-api</artifactId>
<version>2.8.0</version>
<version>2.9.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.github.shynixn.structureblocklib</groupId>
<artifactId>structureblocklib-bukkit-core</artifactId>
<version>2.8.0</version>
<version>2.9.0</version>
<scope>compile</scope>
</dependency>
```
**Gradle**

```xml
dependencies {
implementation("com.github.shynixn.structureblocklib:structureblocklib-bukkit-api:2.8.0")
implementation("com.github.shynixn.structureblocklib:structureblocklib-bukkit-core:2.8.0")
implementation("com.github.shynixn.structureblocklib:structureblocklib-bukkit-api:2.9.0")
implementation("com.github.shynixn.structureblocklib:structureblocklib-bukkit-core:2.9.0")
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ tasks.register("printVersion") {

subprojects {
group 'com.github.shynixn.structureblocklib'
version '2.8.0'
version '2.9.0'

apply plugin: 'kotlin-platform-jvm'
apply plugin: 'signing'
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ include("structureblocklib-bukkit-core:bukkit-nms-117R1")
include("structureblocklib-bukkit-core:bukkit-nms-118R1")
include("structureblocklib-bukkit-core:bukkit-nms-118R2")
include("structureblocklib-bukkit-core:bukkit-nms-119R1")
include("structureblocklib-bukkit-core:bukkit-nms-119R2")
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,14 @@ public enum Version {
VERSION_1_18_R2("v1_18_R2", "1.18.2", 1.182),

/**
* Version 1.19.0 - 1.19.0
* Version 1.19.0 - 1.19.2.
*/
VERSION_1_19_R1("v1_19_R1", "1.19.0", 1.190);
VERSION_1_19_R1("v1_19_R1", "1.19.0", 1.190),

/**
* Version 1.19.3 - 1.19.3.
*/
VERSION_1_19_R2("v1_19_R2", "1.19.3", 1.193);

private final String bukkitId;
private final String id;
Expand Down
9 changes: 9 additions & 0 deletions structureblocklib-bukkit-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ tasks.register("pluginJar", Exec::class.java) {
targetJarFile,
targetJarFile
)
obsMapping = "$obsMapping && " + createCommand(
"1.19.3-R0.1-SNAPSHOT",
"com/github/shynixn/structureblocklib/bukkit/v1_19_R2",
file,
shadowJar,
targetJarFile,
targetJarFile
)

if (System.getProperty("os.name").toLowerCase(Locale.ROOT).contains("windows")) {
commandLine = listOf("cmd", "/c", obsMapping.replace("\$HOME", "%userprofile%"))
Expand Down Expand Up @@ -113,6 +121,7 @@ dependencies {
implementation(project(":structureblocklib-bukkit-core:bukkit-nms-118R1"))
implementation(project(":structureblocklib-bukkit-core:bukkit-nms-118R2"))
implementation(project(":structureblocklib-bukkit-core:bukkit-nms-119R1"))
implementation(project(":structureblocklib-bukkit-core:bukkit-nms-119R2"))

compileOnly("org.spigotmc:spigot:1.14.4-R0.1-SNAPSHOT")
testCompile("org.spigotmc:spigot:1.12-R0.1-SNAPSHOT")
Expand Down
24 changes: 24 additions & 0 deletions structureblocklib-bukkit-core/bukkit-nms-119R2/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
repositories {
maven(url = "https://libraries.minecraft.net")
}

dependencies {
// Dependencies of spigot mojang want to restrict usage to only Java 17. However, we do not care
// what they want because the general compatibility of this plugin is Java 8. The plugin
// guarantees that everything works during runtime. This error is a false positive.
components {
all {
allVariants {
attributes {
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 8)
}
}
}
}

implementation(project(":structureblocklib-api"))
implementation(project(":structureblocklib-core"))
implementation(project(":structureblocklib-bukkit-api"))
compileOnly("org.spigotmc:spigot:1.19.3-R0.1-SNAPSHOT:remapped-mojang")
testCompile("org.spigotmc:spigot:1.19.3-R0.1-SNAPSHOT:remapped-mojang")
}
Loading

0 comments on commit 37e6561

Please sign in to comment.