2020-04-12 13:44:08 +02:00
|
|
|
plugins {
|
2023-12-21 18:04:38 +01:00
|
|
|
id 'org.springframework.boot' version '3.2.1'
|
2023-12-14 15:06:57 +01:00
|
|
|
id 'io.spring.dependency-management' version '1.1.4'
|
2020-04-12 13:44:08 +02:00
|
|
|
id 'java'
|
|
|
|
id 'groovy'
|
2023-12-14 15:13:34 +01:00
|
|
|
id 'org.liquibase.gradle' version '2.2.1'
|
2023-12-14 15:15:20 +01:00
|
|
|
id "nebula.lint" version "19.0.1"
|
2022-06-30 18:36:21 +02:00
|
|
|
id "com.gorylenko.gradle-git-properties" version "2.4.1"
|
2017-12-12 01:06:58 +01:00
|
|
|
}
|
|
|
|
|
2018-03-01 12:10:30 +01:00
|
|
|
group = "net.broken"
|
2020-04-12 17:20:46 +02:00
|
|
|
archivesBaseName = "ClaptrapBot"
|
2023-12-29 15:28:35 +01:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_21.toString()
|
2022-05-13 17:54:56 +02:00
|
|
|
|
2017-12-12 01:06:58 +01:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2021-04-29 19:03:47 +02:00
|
|
|
maven {
|
|
|
|
url 'https://m2.dv8tion.net/releases'
|
|
|
|
}
|
2017-12-12 01:06:58 +01:00
|
|
|
}
|
2022-05-15 18:39:46 +02:00
|
|
|
jar {
|
2022-05-15 16:49:55 +02:00
|
|
|
enabled(false)
|
|
|
|
}
|
2017-12-12 01:06:58 +01:00
|
|
|
|
2022-06-30 18:36:21 +02:00
|
|
|
configurations.implementation {
|
|
|
|
exclude group: "org.springframework.boot", module: "spring-boot-starter-logging"
|
|
|
|
}
|
|
|
|
|
2017-12-12 01:06:58 +01:00
|
|
|
dependencies {
|
2022-06-30 18:36:21 +02:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-security")
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
|
2022-05-13 17:54:56 +02:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-log4j2")
|
2022-06-30 18:36:21 +02:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-oauth2-client")
|
|
|
|
implementation('org.springframework.boot:spring-boot-starter-actuator')
|
2023-12-11 18:01:46 +01:00
|
|
|
implementation('io.micrometer:micrometer-registry-prometheus:1.12.1')
|
2020-04-12 13:44:08 +02:00
|
|
|
|
2023-04-02 12:58:05 +02:00
|
|
|
implementation('org.springdoc:springdoc-openapi-ui:1.7.0')
|
2023-12-14 15:07:45 +01:00
|
|
|
implementation('org.springdoc:springdoc-openapi-security:1.7.0')
|
2022-05-13 17:54:56 +02:00
|
|
|
|
2022-06-30 18:36:21 +02:00
|
|
|
implementation('org.liquibase:liquibase-core')
|
2018-01-12 12:50:12 +01:00
|
|
|
|
2023-12-14 15:13:12 +01:00
|
|
|
implementation('io.jsonwebtoken:jjwt-api:0.12.3')
|
2023-12-14 15:15:10 +01:00
|
|
|
implementation('io.jsonwebtoken:jjwt-impl:0.12.3')
|
2023-12-14 15:16:55 +01:00
|
|
|
implementation('io.jsonwebtoken:jjwt-jackson:0.12.3')
|
2019-09-16 12:19:35 +02:00
|
|
|
|
2022-06-30 18:36:21 +02:00
|
|
|
implementation('com.sedmelluq:lavaplayer:1.3.78')
|
2023-12-14 15:05:21 +01:00
|
|
|
implementation('net.dv8tion:JDA:5.0.0-beta.18')
|
2018-12-04 19:00:20 +01:00
|
|
|
|
2023-12-27 10:26:14 +01:00
|
|
|
implementation(platform("org.apache.logging.log4j:log4j-bom:2.22.1"))
|
2023-12-14 15:14:23 +01:00
|
|
|
implementation group: 'org.hibernate', name: 'hibernate-validator', version: '8.0.1.Final'
|
2017-12-12 01:06:58 +01:00
|
|
|
|
2022-06-30 18:36:21 +02:00
|
|
|
// Use MySQL Connector-J
|
2023-12-14 15:06:43 +01:00
|
|
|
implementation('mysql:mysql-connector-java:8.0.33')
|
2022-06-30 18:36:21 +02:00
|
|
|
implementation('org.reflections:reflections:0.10.2')
|
2023-12-14 15:13:22 +01:00
|
|
|
implementation('org.apache.commons:commons-lang3:3.14.0')
|
2022-06-30 18:36:21 +02:00
|
|
|
|
|
|
|
|
2023-12-18 23:34:33 +01:00
|
|
|
liquibaseRuntime('org.liquibase:liquibase-core:4.25.1')
|
2023-12-14 15:13:07 +01:00
|
|
|
liquibaseRuntime('org.liquibase:liquibase-groovy-dsl:3.0.3')
|
2023-12-14 15:06:43 +01:00
|
|
|
liquibaseRuntime('mysql:mysql-connector-java:8.0.33')
|
2022-06-30 18:36:21 +02:00
|
|
|
liquibaseRuntime group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
|
2023-12-20 16:28:57 +01:00
|
|
|
liquibaseRuntime group: 'org.liquibase.ext', name: 'liquibase-hibernate5', version: '4.25.1'
|
2022-06-30 18:36:21 +02:00
|
|
|
liquibaseRuntime 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
|
|
liquibaseRuntime 'org.springframework.data:spring-data-jpa'
|
|
|
|
liquibaseRuntime 'org.springframework:spring-beans'
|
2023-12-14 15:09:42 +01:00
|
|
|
liquibaseRuntime 'net.dv8tion:JDA:5.0.0-beta.18'
|
2022-06-30 18:36:21 +02:00
|
|
|
liquibaseRuntime 'com.sedmelluq:lavaplayer:1.3.78'
|
|
|
|
liquibaseRuntime sourceSets.main.output
|
2018-03-01 12:10:30 +01:00
|
|
|
|
2022-06-30 18:36:21 +02:00
|
|
|
}
|
|
|
|
apply plugin: "org.liquibase.gradle"
|
2018-03-01 12:10:30 +01:00
|
|
|
|
2022-06-30 18:36:21 +02:00
|
|
|
configurations {
|
|
|
|
liquibaseRuntime.extendsFrom runtime
|
|
|
|
}
|
|
|
|
liquibase {
|
|
|
|
activities {
|
|
|
|
main {
|
|
|
|
changeLogFile "src/main/resources/db/changelog/db.changelog-master.yml"
|
|
|
|
url System.getenv("DB_URL")
|
|
|
|
referenceUrl 'hibernate:spring:net.Broken?dialect=org.hibernate.dialect.MySQL5Dialect&hibernate.physical_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy&hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy'
|
|
|
|
username System.getenv("DB_USER")
|
|
|
|
password System.getenv("DB_PWD")
|
|
|
|
}
|
2018-03-01 12:10:30 +01:00
|
|
|
}
|
2020-07-24 17:24:35 +02:00
|
|
|
}
|