Skip to content

Commit

Permalink
Dissolve platform subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
schnapster committed Nov 9, 2024
1 parent e5ceb96 commit 52e2c2f
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 74 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ hs_err_pid*
/common/build
/discord-wrapper/build
/dashboard/build
/platform/build

# Ignore Gradle GUI config
gradle-app.setting
Expand Down
98 changes: 39 additions & 59 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ ext {
isProd = project.hasProperty('prod')
}

configure(allprojects.findAll { it.name != 'platform' }) {
configure(allprojects) {
apply plugin: 'java-library'
apply plugin: 'idea'

Expand All @@ -71,12 +71,6 @@ configure(allprojects.findAll { it.name != 'platform' }) {
generatedSourceDirs += sourceSets.test.output.generatedSourcesDirs
}
}

dependencies {
api platform(project(':platform'))
annotationProcessor platform(project(':platform'))
compileOnly platform(project(':platform'))
}
}

apply plugin: 'com.github.ben-manes.versions'
Expand Down Expand Up @@ -178,43 +172,29 @@ allprojects {
}

defaultTasks 'build'
}

project(':platform') {
apply plugin: 'java-platform'
javaPlatform {
allowDependencies()
configurations {
globalPlatforms {
canBeResolved = false
canBeConsumed = false
}

//we want to go with undertow which supports both webflux and servlets (togglz console is a servlet)
implementation.exclude module: "spring-boot-starter-reactor-netty"
implementation.exclude module: "spring-boot-starter-tomcat"
}
dependencies {
api platform("org.springframework.boot:spring-boot-dependencies:$springBootVersion")
api platform("io.prometheus:simpleclient_bom:$prometheusVersion")
api platform("io.sentry:sentry-bom:$sentryVersion")
constraints {
api "net.dv8tion:JDA:$jdaVersion"
api "club.minnced:discord-webhooks:$discordWebhooksVersion"
api "org.json:json:$orgJsonVersion"
api "com.sun.xml.bind:jaxb-impl:$jaxbImplVersion"
api "org.glassfish.jaxb:jaxb-core:$jaxbImplVersion"
api "org.glassfish.jaxb:jaxb-runtime:$jaxbImplVersion"
api "org.openjdk.nashorn:nashorn-core:$nashornVersion"

api "space.npstr:prometheus_extensions:$promExtVersion"

api "net.ttddyy:datasource-proxy:$dsProxyVersion"
api "org.flywaydb:flyway-core:$flywayVersion"
api "org.jooq:jooq:$jooqVersion"
api "org.jooq:jooq-meta:$jooqVersion"
api "org.jooq:jooq-codegen:$jooqVersion"

api "org.togglz:togglz-core:$togglzVersion"
api "org.togglz:togglz-spring-boot-starter:$togglzVersion"
api "org.togglz:togglz-console:$togglzVersion"
api "org.togglz:togglz-spring-security:$togglzVersion"

api "com.codeborne:selenide:$selenideVersion"
api "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion"

configurations.configureEach {
if (canBeResolved) {
extendsFrom(configurations.globalPlatforms)
}
}

dependencies {
globalPlatforms platform("org.springframework.boot:spring-boot-dependencies:$springBootVersion")
globalPlatforms platform("io.prometheus:simpleclient_bom:$prometheusVersion")
globalPlatforms platform("io.sentry:sentry-bom:$sentryVersion")
}
}

project(':frontend') {
Expand Down Expand Up @@ -288,11 +268,8 @@ ext {
}

dependencies {
flywayMigration platform(project(':platform'))
jooqGenerator platform(project(':platform'))

implementation "net.dv8tion:JDA"
implementation "club.minnced:discord-webhooks"
implementation "net.dv8tion:JDA:$jdaVersion"
implementation "club.minnced:discord-webhooks:$discordWebhooksVersion"

implementation "ch.qos.logback:logback-classic"
implementation "io.sentry:sentry-logback"
Expand All @@ -302,8 +279,8 @@ dependencies {
implementation "org.yaml:snakeyaml"
implementation "com.squareup.okhttp3:okhttp"
implementation "com.github.ben-manes.caffeine:caffeine"
implementation "org.json:json"
implementation "org.openjdk.nashorn:nashorn-core"
implementation "org.json:json:$orgJsonVersion"
implementation "org.openjdk.nashorn:nashorn-core:$nashornVersion"

implementation "io.lettuce:lettuce-core"
implementation(group: "io.netty", name: "netty-transport-native-epoll", classifier: "linux-x86_64")
Expand All @@ -314,23 +291,26 @@ dependencies {
implementation "io.prometheus:simpleclient_logback"
implementation "io.prometheus:simpleclient_common"
implementation "io.prometheus:simpleclient_caffeine"
implementation "space.npstr:prometheus_extensions"
implementation "space.npstr:prometheus_extensions:$promExtVersion"

implementation "org.postgresql:postgresql"
implementation "com.zaxxer:HikariCP"
implementation "org.flywaydb:flyway-core"
implementation "net.ttddyy:datasource-proxy"
implementation "org.flywaydb:flyway-core:$flywayVersion"
implementation "net.ttddyy:datasource-proxy:$dsProxyVersion"

implementation "org.jooq:jooq"
implementation "org.jooq:jooq-codegen"
implementation "org.jooq:jooq-meta"
implementation "org.jooq:jooq:$jooqVersion"
implementation "org.jooq:jooq-codegen:$jooqVersion"
implementation "org.jooq:jooq-meta:$jooqVersion"
flywayMigration "org.postgresql:postgresql"
jooqGenerator "com.sun.xml.bind:jaxb-impl:$jaxbImplVersion"
jooqGenerator "org.glassfish.jaxb:jaxb-core:$jaxbImplVersion"
jooqGenerator "org.glassfish.jaxb:jaxb-runtime:$jaxbImplVersion"
jooqGenerator "org.postgresql:postgresql"

implementation "org.togglz:togglz-core"
implementation "org.togglz:togglz-spring-boot-starter"
implementation "org.togglz:togglz-console"
implementation "org.togglz:togglz-spring-security"
implementation "org.togglz:togglz-core:$togglzVersion"
implementation "org.togglz:togglz-spring-boot-starter:$togglzVersion"
implementation "org.togglz:togglz-console:$togglzVersion"
implementation "org.togglz:togglz-spring-security:$togglzVersion"

implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.springframework.boot:spring-boot-starter-undertow"
Expand All @@ -355,8 +335,8 @@ dependencies {
testImplementation "org.springframework.security:spring-security-test"
testImplementation "org.testcontainers:testcontainers"
testImplementation "org.testcontainers:selenium"
testImplementation "com.codeborne:selenide"
testImplementation "org.mockito.kotlin:mockito-kotlin"
testImplementation "com.codeborne:selenide:$selenideVersion"
testImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion"
testImplementation "org.awaitility:awaitility"
}

Expand Down
Loading

0 comments on commit 52e2c2f

Please sign in to comment.