Skip to content

Commit

Permalink
add more libraries to jarjar
Browse files Browse the repository at this point in the history
  • Loading branch information
PssbleTrngle committed Oct 24, 2024
1 parent b20f530 commit 0bb7c24
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ run
# Files from Forge MDK
forge*changelog.txt

**.env
**.env
docker/mods
21 changes: 21 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import com.expediagroup.graphql.plugin.gradle.config.GraphQLSerializer
import com.expediagroup.graphql.plugin.gradle.graphql
import net.minecraftforge.gradle.userdev.jarjar.JarJarProjectExtension

val mod_id: String by extra
val mod_version: String by extra
val dynmap_version: String by extra
val rabbitmq_version: String by extra
val travelers_titles_version: String by extra
Expand Down Expand Up @@ -74,6 +76,12 @@ dependencies {
pin("io.ktor:ktor-client-core-jvm:$ktor_client_version")
pin("io.ktor:ktor-client-cio-jvm:$ktor_client_version")
pin("io.ktor:ktor-client-serialization-jvm:$ktor_client_version")
pin("io.ktor:ktor-network-jvm:$ktor_client_version")
pin("io.ktor:ktor-network-tls-jvm:$ktor_client_version")
pin("io.ktor:ktor-events-jvm:$ktor_client_version")
pin("io.ktor:ktor-utils-jvm:$ktor_client_version")
pin("io.ktor:ktor-io-jvm:$ktor_client_version")
pin("io.ktor:ktor-http-jvm:$ktor_client_version")

//add("minecraftLibrary", "org.jetbrains.kotlin:kotlin-reflect:${kotlin.coreLibrariesVersion}")
}
Expand All @@ -98,4 +106,17 @@ uploadToModrinth {
syncBodyFromReadme()
}

val copy = task<Copy>("copyBuild") {
group = "build"

from("build/libs/${mod_id}-${mod_version}.jar")
into("docker/mods")

dependsOn("jarJar")
}

tasks.build {
dependsOn(copy)
}

enableSonarQube()
10 changes: 10 additions & 0 deletions docker/config/atheneum_connector-common.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

[rabbitmq]
user = "guest"
password = "guest"
host = "rabbitmq"
port = "5672"

[grapql]
url = "http://localhost:8080/api/graphql"

11 changes: 9 additions & 2 deletions docker-compose.yml → docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: atheneum-connector
services:
mc:
image: itzg/minecraft-server
container_name: atheneum-connector
tty: true
stdin_open: true
ports:
Expand All @@ -14,7 +15,13 @@ services:
MODRINTH_PROJECTS: kotlin-for-forge
volumes:
- data:/data
- ./build/libs:/mods
- ./config:/config
- ./mods:/mods

volumes:
data:
data:

networks:
default:
name: atheneum_default
external: true

0 comments on commit 0bb7c24

Please sign in to comment.