Skip to content

Commit

Permalink
Fix ENV's
Browse files Browse the repository at this point in the history
Fix enviroments
  • Loading branch information
cooffeeRequired committed Jan 21, 2023
1 parent f3439fe commit a4ac2a6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
- name: Set output
run: echo "{name}={value}" >> $GITHUB_OUTPUT

- name: Set up JAVA 17
- name: Set up JAVA 14
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '14'
distribution: 'temurin'

- name: Change wrapper permissions
Expand Down
55 changes: 27 additions & 28 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'

group = 'cz.coffee'
version = '2.5'
version = '2.5.9'

repositories {
mavenCentral()
Expand Down Expand Up @@ -58,7 +58,6 @@ dependencies {
implementation group: 'org.yaml', name: 'snakeyaml', version: '1.33'
implementation files('libs/reqn.jar')
implementation files('libs/skbee.jar')
//implementation files('libs/spigot.api.jar')
shadow 'com.google.code.gson:gson:2.10.1'
// compileOnly 'org.spigotmc:spigot-api:1.19.3-R0.1-SNAPSHOT' // The Spigot API with no shadowing. Requires the OSS repo.
// compileOnly 'org.spigotmc:spigot:1.19.3-R0.1-SNAPSHOT' // The full Spigot server with no shadowing. Requires mavenLocal.
Expand Down Expand Up @@ -113,32 +112,32 @@ tasks.withType(ShadowJar).configureEach {


//noinspection ConfigurationAvoidance
//task release(type:Copy) {
// from shadowJar
// [
// 'A:\\workspaces\\latest\\plugins'
// ]
// .each {destination ->
// into destination
// }
// def styler = 'black red green yellow blue magenta cyan white'
// .split().toList().withIndex(30)
// .collectEntries { key, val -> [(key) : { "\033[${val}m${it}\033[0m" }] }
//
// doLast {
// println "Message: ${styler['green']('new release was out of')} ${styler['blue']('skJson')}"
// }
//}
task release(type:Copy) {
from shadowJar
[
'A:\\workspaces\\latest\\plugins'
]
.each {destination ->
into destination
}
def styler = 'black red green yellow blue magenta cyan white'
.split().toList().withIndex(30)
.collectEntries { key, val -> [(key) : { "\033[${val}m${it}\033[0m" }] }

doLast {
println "Message: ${styler['green']('new release was out of')} ${styler['blue']('skJson')}"
}
}

//noinspection ConfigurationAvoidance
//task cleanOld() {
// [
// 'A:/plugins/'
// ]
// .each {destination -> {
// def tree = fileTree(destination)
// tree.include('**/skJson*.jar')
// tree.each {it.delete()}
// }}
//}
task cleanOld() {
[
'A:/plugins/'
]
.each {destination -> {
def tree = fileTree(destination)
tree.include('**/skJson*.jar')
tree.each {it.delete()}
}}
}

0 comments on commit a4ac2a6

Please sign in to comment.