Skip to content

Commit

Permalink
added shadowJar to node
Browse files Browse the repository at this point in the history
  • Loading branch information
DinoMarlir committed May 24, 2024
1 parent 23151b9 commit 13a22c6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions node/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ val ktor_version: String by project
plugins {
kotlin("jvm") version "1.9.24"
kotlin("plugin.serialization") version "1.9.24"
id("com.github.johnrengelman.shadow") version "8.1.1"
}

group = "me.blueamethyst.bluecloud"
Expand Down Expand Up @@ -34,4 +35,15 @@ dependencies {

tasks.test {
useJUnitPlatform()
}

tasks.shadowJar {
archiveFileName = "node.jar"
manifest {
attributes(
mapOf(
"Main-Class" to "me.blueamethyst.bluecloud.node.BootKt",
)
)
}
}
8 changes: 8 additions & 0 deletions node/src/main/kotlin/me/blueamethyst/bluecloud/node/Boot.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package me.blueamethyst.bluecloud.node

import me.blueamethyst.bluecloud.api.annontations.InternalBlueCloudApi

@OptIn(InternalBlueCloudApi::class)
fun main() {
Node().startup()
}

0 comments on commit 13a22c6

Please sign in to comment.