-
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 #69 from DevScyu/build-script
Update build script to use conventions
- Loading branch information
Showing
9 changed files
with
72 additions
and
86 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 |
---|---|---|
|
@@ -11,21 +11,23 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./gradlew shadow | ||
- name: Upload artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: package | ||
path: build/libs | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 16 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt | ||
java-version: 16 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build | ||
run: gradle build | ||
|
||
- name: Upload build | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: build | ||
path: build/libs |
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
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,6 @@ | ||
group=com.derongan.minecraft | ||
version=0.3 | ||
kotlinVersion=1.5.0 | ||
serverVersion=1.16.5-R0.1-SNAPSHOT | ||
kotlinVersion=1.5.21 | ||
serverVersion=1.17.1-R0.1-SNAPSHOT | ||
idofrontVersion=1.17.1-0.6.23 | ||
miaConventionsVersion=1.5.21-14 |
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
22 changes: 0 additions & 22 deletions
22
src/test/java/com/derongan/minecraft/deeperworld/world/RegionTestU.java
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
src/test/java/com/derongan/minecraft/deeperworld/world/RegionTestU.kt
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,19 @@ | ||
package com.derongan.minecraft.deeperworld.world | ||
|
||
import org.junit.jupiter.api.Assertions.assertFalse | ||
import org.junit.jupiter.api.Assertions.assertTrue | ||
import org.junit.jupiter.api.Test | ||
|
||
class RegionTestU { | ||
@Test | ||
fun contains() { | ||
val region = Region(-1, -1, 10, 10) | ||
assertTrue(region.contains(-1, -1)) | ||
assertTrue(region.contains(10, 10)) | ||
assertTrue(region.contains(8, 5)) | ||
assertFalse(region.contains(-2, 5)) | ||
assertFalse(region.contains(11, 5)) | ||
assertFalse(region.contains(5, -2)) | ||
assertFalse(region.contains(5, 11)) | ||
} | ||
} |