2020-04-12 13:44:08 +02:00
|
|
|
plugins {
|
2021-04-29 21:08:35 +02:00
|
|
|
id 'org.springframework.boot' version '2.4.5'
|
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'
|
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"
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-03-01 12:45:04 +01:00
|
|
|
jar.doFirst {
|
|
|
|
delete "${buildDir}/libs/*"
|
|
|
|
}
|
|
|
|
|
2017-12-12 01:06:58 +01:00
|
|
|
jar {
|
2020-04-12 13:44:08 +02:00
|
|
|
// delete "${buildDir}/libs/*"
|
2020-04-12 17:20:46 +02:00
|
|
|
// baseName = 'DiscordBot'
|
2018-03-01 12:10:30 +01:00
|
|
|
|
2017-12-12 01:06:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
2021-04-29 19:03:47 +02:00
|
|
|
maven {
|
|
|
|
url 'https://m2.dv8tion.net/releases'
|
|
|
|
}
|
2017-12-12 01:06:58 +01:00
|
|
|
}
|
|
|
|
|
2018-02-28 19:06:09 +01:00
|
|
|
javadoc {
|
|
|
|
source = sourceSets.main.allJava
|
|
|
|
classpath = configurations.compile
|
|
|
|
}
|
|
|
|
|
2017-12-12 01:06:58 +01:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile("org.springframework.boot:spring-boot-starter-web"){
|
|
|
|
exclude group:"org.springframework.boot", module: "spring-boot-starter-logging"
|
2018-12-04 19:00:20 +01:00
|
|
|
exclude group: "org.springframework.boot", module :"spring-boot-starter-tomcat"
|
2017-12-12 01:06:58 +01:00
|
|
|
}
|
2018-12-04 19:00:20 +01:00
|
|
|
compile("org.springframework.boot:spring-boot-starter-undertow")
|
2017-12-12 01:06:58 +01:00
|
|
|
compile("org.springframework.boot:spring-boot-starter-log4j2")
|
2021-04-29 21:08:47 +02:00
|
|
|
implementation 'org.codehaus.groovy:groovy-all:3.0.8'
|
2020-04-12 13:44:08 +02:00
|
|
|
|
|
|
|
|
2018-12-04 19:00:20 +01:00
|
|
|
|
|
|
|
|
2021-05-31 10:53:54 +02:00
|
|
|
implementation 'com.sedmelluq:lavaplayer:1.3.77'
|
2021-05-31 10:56:16 +02:00
|
|
|
compile 'net.dv8tion:JDA:4.2.1_266'
|
2021-03-23 14:20:06 +01:00
|
|
|
compile group: 'org.json', name: 'json', version: '20210307'
|
2021-05-18 09:34:53 +02:00
|
|
|
compile 'org.springframework.security:spring-security-web:5.5.0'
|
2018-02-15 02:02:35 +01:00
|
|
|
// JPA Data (We are going to use Repositories, Entities, Hibernate, etc...)
|
|
|
|
compile("org.springframework.boot:spring-boot-starter-data-jpa") {
|
|
|
|
exclude group:"org.springframework.boot", module: "spring-boot-starter-logging"
|
|
|
|
}
|
2022-01-20 21:26:32 +01:00
|
|
|
implementation(platform("org.apache.logging.log4j:log4j-bom:2.17.1"))
|
2018-02-15 02:02:35 +01:00
|
|
|
// Use MySQL Connector-J
|
|
|
|
compile 'mysql:mysql-connector-java'
|
2021-02-17 13:42:46 +01:00
|
|
|
compile 'org.reflections:reflections:0.9.12'
|
2021-03-04 09:21:03 +01:00
|
|
|
compile 'org.apache.commons:commons-lang3:3.12.0'
|
2022-01-20 21:27:26 +01:00
|
|
|
compile 'com.google.api-client:google-api-client:1.33.0'
|
2021-04-29 21:08:06 +02:00
|
|
|
compile 'com.google.apis:google-api-services-youtube:v3-rev20210410-1.31.0'
|
2022-01-20 21:26:32 +01:00
|
|
|
|
2018-01-12 12:50:12 +01:00
|
|
|
|
2021-02-16 12:32:21 +01:00
|
|
|
compile group: 'org.jsoup', name: 'jsoup', version: '1.13.1'
|
2019-09-16 12:19:35 +02:00
|
|
|
|
2017-12-12 01:06:58 +01:00
|
|
|
testCompile('org.springframework.boot:spring-boot-starter-test')
|
|
|
|
testCompile('com.jayway.jsonpath:json-path')
|
2018-12-04 19:00:20 +01:00
|
|
|
|
2017-12-22 19:20:26 +01:00
|
|
|
compile("org.springframework.boot:spring-boot-starter-thymeleaf") {
|
|
|
|
exclude group:"org.springframework.boot", module: "spring-boot-starter-logging"
|
|
|
|
}
|
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") ?:
|
2018-03-01 12:10:30 +01:00
|
|
|
System.getenv("GIT_COMMIT")?.substring(0, 7) ?: System.getProperty("GIT_COMMIT")?.substring(0, 7) ?:"DEV"
|
|
|
|
}
|
|
|
|
|
|
|
|
String toString() {
|
|
|
|
"${major}.${minor}.${revision}_$build"
|
|
|
|
}
|
2020-07-24 17:24:35 +02:00
|
|
|
}
|