ClaptrapBot/build.gradle

93 lines
2.6 KiB
Groovy
Raw Normal View History

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.9.RELEASE")
2017-12-12 23:29:49 +01:00
classpath 'org.springframework:springloaded:1.2.6.RELEASE'
}
}
2018-03-01 12:42:14 +01:00
apply plugin: 'base'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
2018-03-01 12:10:30 +01:00
def versionObj = new Version(major: 0, minor: 2, revision: 0)
group = "net.broken"
archivesBaseName = "BrokenDiscordBot"
version = "$versionObj"
sourceCompatibility = 1.8
targetCompatibility = 1.8
2018-03-01 12:45:04 +01:00
jar.doFirst {
delete "${buildDir}/libs/*"
}
jar {
2018-03-01 14:57:49 +01:00
delete "${buildDir}/libs/*"
baseName = 'DiscordBot'
2018-03-01 12:10:30 +01:00
}
repositories {
mavenCentral()
jcenter()
}
2018-02-28 19:06:09 +01:00
javadoc {
source = sourceSets.main.allJava
classpath = configurations.compile
}
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"
}
2018-12-04 19:00:20 +01:00
compile("org.springframework.boot:spring-boot-starter-undertow")
compile("org.springframework.boot:spring-boot-starter-log4j2")
2018-12-04 19:00:20 +01:00
2019-09-10 08:32:46 +02:00
compile("com.sedmelluq:lavaplayer:1.3.21")
2019-09-10 09:03:16 +02:00
compile 'net.dv8tion:JDA:4.0.0_46'
compile group: 'org.json', name: 'json', version: '20160810'
compile 'org.springframework.security:spring-security-web:5.0.1.RELEASE'
// 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"
}
// Use MySQL Connector-J
compile 'mysql:mysql-connector-java'
2018-01-12 12:50:12 +01:00
compile 'org.reflections:reflections:0.9.11'
2018-02-27 12:16:34 +01:00
compile 'org.apache.commons:commons-lang3:3.7'
2018-03-02 15:57:10 +01:00
compile 'com.google.api-client:google-api-client:1.23.0'
compile 'com.google.apis:google-api-services-youtube:v3-rev192-1.23.0'
2018-01-12 12:50:12 +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"
}
}
2018-03-01 12:10:30 +01:00
class Version {
String major, minor, revision
static String getBuild() {
System.getenv("BUILD_NUMBER") ?: System.getProperty("BUILD_NUMBER") ?:
System.getenv("GIT_COMMIT")?.substring(0, 7) ?: System.getProperty("GIT_COMMIT")?.substring(0, 7) ?:"DEV"
}
String toString() {
"${major}.${minor}.${revision}_$build"
}
}