2020-04-12 13:44:08 +02:00
|
|
|
plugins {
|
2022-05-13 17:54:56 +02:00
|
|
|
id 'org.springframework.boot' version '2.6.7'
|
2021-02-17 11:02:12 +01:00
|
|
|
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
|
2020-04-12 13:44:08 +02:00
|
|
|
id 'java'
|
|
|
|
id 'groovy'
|
2022-05-21 01:14:50 +02:00
|
|
|
id 'org.liquibase.gradle' version '2.0.4'
|
2017-12-12 01:06:58 +01:00
|
|
|
}
|
|
|
|
|
2018-03-01 12:10:30 +01:00
|
|
|
|
|
|
|
def versionObj = new Version(major: 0, minor: 2, revision: 0)
|
|
|
|
|
|
|
|
group = "net.broken"
|
2020-04-12 17:20:46 +02:00
|
|
|
archivesBaseName = "ClaptrapBot"
|
2018-03-01 12:10:30 +01:00
|
|
|
version = "$versionObj"
|
|
|
|
|
2022-05-13 17:54:56 +02:00
|
|
|
sourceCompatibility = '17'
|
|
|
|
|
2018-03-01 12:10:30 +01: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-05-17 20:56:32 +02:00
|
|
|
|
|
|
|
configurations.implementation {
|
|
|
|
exclude group: "org.springframework.boot", module: "spring-boot-starter-logging"
|
|
|
|
}
|
|
|
|
|
2017-12-12 01:06:58 +01:00
|
|
|
dependencies {
|
2022-05-17 20:56:32 +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")
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
|
2022-05-13 17:54:56 +02:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-log4j2")
|
2022-05-17 20:56:32 +02:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-oauth2-client")
|
2020-04-12 13:44:08 +02:00
|
|
|
|
2022-05-24 22:59:52 +02:00
|
|
|
implementation("org.springdoc:springdoc-openapi-ui:1.6.8")
|
|
|
|
implementation("org.springdoc:springdoc-openapi-security:1.6.8")
|
|
|
|
|
2022-05-21 01:14:50 +02:00
|
|
|
implementation('org.liquibase:liquibase-core')
|
|
|
|
|
2022-05-19 01:08:47 +02:00
|
|
|
implementation('io.jsonwebtoken:jjwt-api:0.11.5')
|
|
|
|
implementation('io.jsonwebtoken:jjwt-impl:0.11.5')
|
|
|
|
implementation('io.jsonwebtoken:jjwt-gson:0.11.5')
|
|
|
|
|
2022-05-17 20:56:32 +02:00
|
|
|
implementation 'org.codehaus.groovy:groovy-all:3.0.8'
|
2020-04-12 13:44:08 +02:00
|
|
|
|
2021-05-31 10:53:54 +02:00
|
|
|
implementation 'com.sedmelluq:lavaplayer:1.3.77'
|
2022-05-13 17:54:56 +02:00
|
|
|
implementation 'net.dv8tion:JDA:4.4.0_350'
|
|
|
|
implementation group: 'org.json', name: 'json', version: '20210307'
|
2018-02-15 02:02:35 +01:00
|
|
|
// JPA Data (We are going to use Repositories, Entities, Hibernate, etc...)
|
2022-05-17 20:56:32 +02:00
|
|
|
|
2022-01-20 21:26:32 +01:00
|
|
|
implementation(platform("org.apache.logging.log4j:log4j-bom:2.17.1"))
|
2022-05-21 01:14:50 +02:00
|
|
|
implementation group: 'org.hibernate', name: 'hibernate-validator', version: '7.0.4.Final'
|
|
|
|
|
2018-02-15 02:02:35 +01:00
|
|
|
// Use MySQL Connector-J
|
2022-05-13 17:54:56 +02:00
|
|
|
implementation 'mysql:mysql-connector-java'
|
|
|
|
implementation 'org.reflections:reflections:0.9.12'
|
|
|
|
implementation 'org.apache.commons:commons-lang3:3.12.0'
|
|
|
|
implementation 'com.google.api-client:google-api-client:1.31.5'
|
|
|
|
implementation 'com.google.apis:google-api-services-youtube:v3-rev20210410-1.31.0'
|
|
|
|
implementation group: 'org.jsoup', name: 'jsoup', version: '1.13.1'
|
2019-09-16 12:19:35 +02:00
|
|
|
|
2018-12-04 19:00:20 +01:00
|
|
|
|
2022-05-21 01:14:50 +02:00
|
|
|
liquibaseRuntime 'org.liquibase:liquibase-core:4.2.2'
|
|
|
|
liquibaseRuntime 'org.liquibase:liquibase-groovy-dsl:2.1.1'
|
|
|
|
liquibaseRuntime 'mysql:mysql-connector-java:5.1.34'
|
|
|
|
liquibaseRuntime group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
|
|
|
|
liquibaseRuntime group: 'org.liquibase.ext', name: 'liquibase-hibernate5', version: '4.10.0'
|
|
|
|
liquibaseRuntime 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
|
|
liquibaseRuntime 'org.springframework.data:spring-data-jpa'
|
|
|
|
liquibaseRuntime 'org.springframework:spring-beans'
|
|
|
|
liquibaseRuntime 'net.dv8tion:JDA:4.4.0_350'
|
|
|
|
liquibaseRuntime 'com.sedmelluq:lavaplayer:1.3.77'
|
|
|
|
liquibaseRuntime sourceSets.main.output
|
|
|
|
|
|
|
|
}
|
|
|
|
apply plugin: "org.liquibase.gradle"
|
2022-05-17 20:56:32 +02:00
|
|
|
|
2022-05-21 01:14:50 +02:00
|
|
|
configurations {
|
|
|
|
liquibaseRuntime.extendsFrom runtime
|
2017-12-12 01:06:58 +01:00
|
|
|
}
|
2022-05-21 01:14:50 +02:00
|
|
|
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")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-12 01:06:58 +01:00
|
|
|
|
2018-03-01 12:10:30 +01:00
|
|
|
class Version {
|
|
|
|
String major, minor, revision
|
|
|
|
|
|
|
|
static String getBuild() {
|
2020-04-12 17:20:46 +02:00
|
|
|
System.getenv("GITHUB_RUN_NUMBER") ?: System.getProperty("BUILD_NUMBER") ?:
|
2022-05-15 18:39:46 +02:00
|
|
|
System.getenv("GIT_COMMIT")?.substring(0, 7) ?: System.getProperty("GIT_COMMIT")?.substring(0, 7) ?: "DEV"
|
2018-03-01 12:10:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
String toString() {
|
|
|
|
"${major}.${minor}.${revision}_$build"
|
|
|
|
}
|
2020-07-24 17:24:35 +02:00
|
|
|
}
|