-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
125b0b4
commit 2dcd7fa
Showing
10 changed files
with
42 additions
and
26 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 |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: '0' # https://github.com/shipkit/shipkit-auto-version#fetch-depth-on-ci | ||
fetch-depth: "0" # https://github.com/shipkit/shipkit-auto-version#fetch-depth-on-ci | ||
- name: Gradle wrapper validation | ||
uses: gradle/[email protected] | ||
|
||
|
@@ -30,7 +30,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: '0' # https://github.com/shipkit/shipkit-auto-version#fetch-depth-on-ci | ||
fetch-depth: "0" # https://github.com/shipkit/shipkit-auto-version#fetch-depth-on-ci | ||
- name: Run build | ||
run: .\gradlew.bat build --continue | ||
|
||
|
@@ -41,7 +41,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: '0' # https://github.com/shipkit/shipkit-auto-version#fetch-depth-on-ci | ||
fetch-depth: "0" # https://github.com/shipkit/shipkit-auto-version#fetch-depth-on-ci | ||
- name: Make gradlew Executable | ||
run: chmod +x ./gradlew | ||
- name: Run build | ||
|
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
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,3 @@ | ||
{ | ||
"extends": [ | ||
"config:base" | ||
] | ||
"extends": ["config:base"] | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/dev/mythicdrops/gradle/ExtensionContainers.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,9 @@ | ||
package dev.mythicdrops.gradle | ||
|
||
import dev.mythicdrops.gradle.conventions.MythicDropsJavaExtension | ||
import org.gradle.api.plugins.ExtensionContainer | ||
import org.gradle.kotlin.dsl.create | ||
import org.gradle.kotlin.dsl.findByType | ||
|
||
fun ExtensionContainer.findOrCreateMythicDropsJavaExtension(): MythicDropsJavaExtension = | ||
findByType() ?: create("mythicDropsJava") |
12 changes: 12 additions & 0 deletions
12
src/main/kotlin/dev/mythicdrops/gradle/conventions/MythicDropsJavaExtension.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,12 @@ | ||
package dev.mythicdrops.gradle.conventions | ||
|
||
import org.gradle.api.JavaVersion | ||
|
||
/** | ||
* Configuration for selecting which version of Java to compile for. | ||
* | ||
* @property javaVersion Version of Java to compile for (e.g., Java 16/17) | ||
*/ | ||
open class MythicDropsJavaExtension { | ||
var javaVersion: String = JavaVersion.VERSION_16.majorVersion | ||
} |
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 +1 @@ | ||
version=2.1.* | ||
version=2.2.* |