Use type-safe project accessors

Signed-off-by: Graham <gpe@openrs2.org>
bzip2
Graham 4 years ago
parent 213808f609
commit 9e8d1fca1c
  1. 12
      all/build.gradle.kts
  2. 22
      archive/build.gradle.kts
  3. 6
      asm/build.gradle.kts
  4. 8
      cache/build.gradle.kts
  5. 2
      compress-cli/build.gradle.kts
  6. 2
      compress/build.gradle.kts
  7. 2
      conf/build.gradle.kts
  8. 4
      crypto/build.gradle.kts
  9. 4
      decompiler/build.gradle.kts
  10. 6
      deob-ast/build.gradle.kts
  11. 10
      deob-bytecode/build.gradle.kts
  12. 8
      deob-processor/build.gradle.kts
  13. 4
      deob-util/build.gradle.kts
  14. 8
      deob/build.gradle.kts
  15. 2
      game/build.gradle.kts
  16. 2
      net/build.gradle.kts
  17. 8
      patcher/build.gradle.kts
  18. 4
      protocol/build.gradle.kts
  19. 1
      settings.gradle.kts

@ -15,12 +15,12 @@ application {
} }
dependencies { dependencies {
implementation(project(":archive")) implementation(projects.archive)
implementation(project(":compress-cli")) implementation(projects.compressCli)
implementation(project(":crc32")) implementation(projects.crc32)
implementation(project(":deob")) implementation(projects.deob)
implementation(project(":game")) implementation(projects.game)
implementation(project(":patcher")) implementation(projects.patcher)
} }
tasks.shadowJar { tasks.shadowJar {

@ -11,17 +11,17 @@ application {
dependencies { dependencies {
api(libs.clikt) api(libs.clikt)
implementation(project(":buffer")) implementation(projects.buffer)
implementation(project(":cache")) implementation(projects.cache)
implementation(project(":cli")) implementation(projects.cli)
implementation(project(":db")) implementation(projects.db)
implementation(project(":http")) implementation(projects.http)
implementation(project(":inject")) implementation(projects.inject)
implementation(project(":json")) implementation(projects.json)
implementation(project(":net")) implementation(projects.net)
implementation(project(":protocol")) implementation(projects.protocol)
implementation(project(":util")) implementation(projects.util)
implementation(project(":yaml")) implementation(projects.yaml)
implementation(libs.bootstrap) implementation(libs.bootstrap)
implementation(libs.bundles.ktor) implementation(libs.bundles.ktor)
implementation(libs.bundles.thymeleaf) implementation(libs.bundles.thymeleaf)

@ -4,13 +4,13 @@ plugins {
} }
dependencies { dependencies {
api(project(":util")) api(projects.util)
api(libs.bundles.asm) api(libs.bundles.asm)
api(libs.guice) api(libs.guice)
api(libs.jackson.databind) api(libs.jackson.databind)
implementation(project(":compress")) implementation(projects.compress)
implementation(project(":crypto")) implementation(projects.crypto)
} }
publishing { publishing {

@ -4,14 +4,14 @@ plugins {
} }
dependencies { dependencies {
api(project(":crypto")) api(projects.crypto)
api(libs.fastutil) api(libs.fastutil)
api(libs.guice) api(libs.guice)
api(libs.netty.buffer) api(libs.netty.buffer)
implementation(project(":buffer")) implementation(projects.buffer)
implementation(project(":compress")) implementation(projects.compress)
implementation(project(":util")) implementation(projects.util)
testImplementation(libs.jimfs) testImplementation(libs.jimfs)
} }

@ -11,7 +11,7 @@ application {
dependencies { dependencies {
api(libs.clikt) api(libs.clikt)
implementation(project(":compress")) implementation(projects.compress)
} }
publishing { publishing {

@ -6,7 +6,7 @@ plugins {
dependencies { dependencies {
api(libs.xz) api(libs.xz)
implementation(project(":util")) implementation(projects.util)
api(libs.commons.compress) api(libs.commons.compress)
api(libs.guava) api(libs.guava)
} }

@ -6,7 +6,7 @@ plugins {
dependencies { dependencies {
api(libs.guice) api(libs.guice)
implementation(project(":yaml")) implementation(projects.yaml)
} }
publishing { publishing {

@ -9,9 +9,9 @@ dependencies {
api(libs.jackson.databind) api(libs.jackson.databind)
api(libs.netty.buffer) api(libs.netty.buffer)
implementation(project(":util")) implementation(projects.util)
testImplementation(project(":buffer")) testImplementation(projects.buffer)
testImplementation(libs.jimfs) testImplementation(libs.jimfs)
} }

@ -10,11 +10,11 @@ application {
} }
dependencies { dependencies {
api(project(":deob-util")) api(projects.deobUtil)
api(libs.clikt) api(libs.clikt)
api(libs.guice) api(libs.guice)
implementation(project(":util")) implementation(projects.util)
implementation(libs.fernflower) implementation(libs.fernflower)
} }

@ -9,12 +9,12 @@ application {
} }
dependencies { dependencies {
api(project(":deob-util")) api(projects.deobUtil)
api(libs.clikt) api(libs.clikt)
api(libs.guice) api(libs.guice)
implementation(project(":inject")) implementation(projects.inject)
implementation(project(":util")) implementation(projects.util)
implementation(libs.guava) implementation(libs.guava)
implementation(libs.javaParser) implementation(libs.javaParser)
implementation(libs.jdom) implementation(libs.jdom)

@ -12,11 +12,11 @@ dependencies {
api(libs.clikt) api(libs.clikt)
api(libs.guice) api(libs.guice)
implementation(project(":deob-annotations")) implementation(projects.deobAnnotations)
implementation(project(":deob-util")) implementation(projects.deobUtil)
implementation(project(":inject")) implementation(projects.inject)
implementation(project(":patcher")) implementation(projects.patcher)
implementation(project(":yaml")) implementation(projects.yaml)
implementation(libs.fastutil) implementation(libs.fastutil)
implementation(libs.guava) implementation(libs.guava)
implementation(libs.jgrapht) implementation(libs.jgrapht)

@ -4,10 +4,10 @@ plugins {
} }
dependencies { dependencies {
implementation(project(":deob-annotations")) implementation(projects.deobAnnotations)
implementation(project(":deob-util")) implementation(projects.deobUtil)
implementation(project(":inject")) implementation(projects.inject)
implementation(project(":yaml")) implementation(projects.yaml)
} }
publishing { publishing {

@ -4,8 +4,8 @@ plugins {
} }
dependencies { dependencies {
api(project(":asm")) api(projects.asm)
api(project(":yaml")) api(projects.yaml)
} }
publishing { publishing {

@ -12,10 +12,10 @@ application {
dependencies { dependencies {
api(libs.clikt) api(libs.clikt)
implementation(project(":decompiler")) implementation(projects.decompiler)
implementation(project(":deob-ast")) implementation(projects.deobAst)
implementation(project(":deob-bytecode")) implementation(projects.deobBytecode)
implementation(project(":inject")) implementation(projects.inject)
} }
publishing { publishing {

@ -11,7 +11,7 @@ application {
dependencies { dependencies {
api(libs.clikt) api(libs.clikt)
implementation(project(":inject")) implementation(projects.inject)
} }
publishing { publishing {

@ -8,7 +8,7 @@ dependencies {
api(libs.kotlin.coroutines.core) api(libs.kotlin.coroutines.core)
api(libs.netty.transport) api(libs.netty.transport)
implementation(project(":buffer")) implementation(projects.buffer)
implementation("io.netty.incubator:netty-incubator-transport-native-io_uring:${libs.versions.nettyIoUring.get()}:linux-aarch_64") implementation("io.netty.incubator:netty-incubator-transport-native-io_uring:${libs.versions.nettyIoUring.get()}:linux-aarch_64")
implementation("io.netty.incubator:netty-incubator-transport-native-io_uring:${libs.versions.nettyIoUring.get()}:linux-x86_64") implementation("io.netty.incubator:netty-incubator-transport-native-io_uring:${libs.versions.nettyIoUring.get()}:linux-x86_64")
implementation("io.netty:netty-transport-native-epoll:${libs.versions.netty.get()}:linux-aarch_64") implementation("io.netty:netty-transport-native-epoll:${libs.versions.netty.get()}:linux-aarch_64")

@ -9,13 +9,13 @@ application {
} }
dependencies { dependencies {
api(project(":asm")) api(projects.asm)
api(libs.clikt) api(libs.clikt)
api(libs.guice) api(libs.guice)
implementation(project(":conf")) implementation(projects.conf)
implementation(project(":crypto")) implementation(projects.crypto)
implementation(project(":inject")) implementation(projects.inject)
implementation(libs.openrs2.natives) implementation(libs.openrs2.natives)
} }

@ -4,10 +4,10 @@ plugins {
} }
dependencies { dependencies {
api(project(":crypto")) api(projects.crypto)
api(libs.netty.codec) api(libs.netty.codec)
implementation(project(":buffer")) implementation(projects.buffer)
} }
publishing { publishing {

@ -21,6 +21,7 @@ pluginManagement {
} }
} }
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
enableFeaturePreview("VERSION_CATALOGS") enableFeaturePreview("VERSION_CATALOGS")
include( include(

Loading…
Cancel
Save