-
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.
Merge pull request #43 from devOS-Sanity-Edition/fix/make-it-work-in-…
…production 🦊 The fox took Yiski's balls away (sanity) then fed it all of the food (dependencies) we have
- Loading branch information
Showing
39 changed files
with
495 additions
and
222 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 |
---|---|---|
|
@@ -43,6 +43,7 @@ bin/ | |
.DS_Store | ||
|
||
### Yiski Discord Bot ### | ||
**/modules | ||
**/run | ||
**/config.toml | ||
**/yiski1_config.toml | ||
|
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
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,18 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
gradlePluginPortal() | ||
maven("https://oss.sonatype.org/content/repositories/snapshots") | ||
maven("https://gitlab.com/api/v4/projects/26794598/packages/maven") // Aviation GitLab | ||
maven("https://maven.lavalink.dev/snapshots") | ||
maven("https://maven.deftu.dev/releases") | ||
maven("https://mvn.devos.one/snapshots") | ||
} | ||
|
||
dependencies { | ||
implementation(gradleApi()) | ||
implementation("com.gradleup.shadow:shadow-gradle-plugin:8.3.0") | ||
} |
34 changes: 34 additions & 0 deletions
34
buildSrc/src/main/kotlin/one/devos/yiski/build/BuildPlugin.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,34 @@ | ||
package one.devos.yiski.build | ||
|
||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar | ||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
import org.gradle.api.tasks.SourceSetContainer | ||
import org.gradle.api.tasks.bundling.Jar | ||
|
||
class BuildPlugin : Plugin<Project> { | ||
|
||
override fun apply(project: Project) { | ||
val shade = project.configurations.create("shade") | ||
|
||
val fatJar = project.tasks.register("fatJar", ShadowJar::class.java) { | ||
group = "devOS" | ||
description = "Creates a fat JAR with all dependencies" | ||
|
||
configurations.add(shade) | ||
manifest.inheritFrom(project.tasks.named("jar", Jar::class.java).get().manifest) | ||
from(project.extensions.getByType(SourceSetContainer::class.java).named("main").get().output) | ||
} | ||
|
||
project.artifacts.add("shade", fatJar) | ||
|
||
if ( | ||
project.plugins.hasPlugin("java") || | ||
project.plugins.hasPlugin("java-library") || | ||
project.plugins.hasPlugin("org.jetbrains.kotlin.jvm") | ||
) { | ||
project.tasks.named("assemble").get().dependsOn(fatJar) | ||
} | ||
} | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
buildSrc/src/main/resources/META-INF/gradle-plugins/one.devos.yiski.build.properties
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 @@ | ||
implementation-class=one.devos.yiski.build.BuildPlugin |
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
4 changes: 2 additions & 2 deletions
4
...in-loader-metadata/yiskimodule/src/main/kotlin/one/devos/basicmodule/BasicModuleConfig.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
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,6 @@ | ||
kotlin.code.style=official | ||
|
||
org.gradle.jvmargs=-Xmx16384m -Xms16384m -XX:MaxMetaspaceSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | ||
org.gradle.parallel.threads=12 | ||
org.gradle.parallel=true | ||
org.gradle.daemon=false |
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
Oops, something went wrong.