skript-db/build.gradle

57 lines
1.3 KiB
Groovy
Raw Normal View History

2017-11-19 03:49:49 +00:00
group 'com.btk5h.skript-db'
2020-05-18 12:34:43 +00:00
version '1.1.0'
2017-11-19 03:49:49 +00:00
buildscript {
repositories {
jcenter()
}
dependencies {
2020-05-02 17:25:36 +00:00
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.2'
2017-11-19 03:49:49 +00:00
}
}
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
url 'https://oss.sonatype.org/content/groups/public/'
}
maven {
2020-05-02 17:25:36 +00:00
url 'http://jitpack.io/'
2017-11-19 03:49:49 +00:00
}
}
dependencies {
2020-05-02 17:25:36 +00:00
shadow 'org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT'
shadow 'com.github.SkriptLang:Skript:2.3.6'
2020-06-24 05:19:09 +00:00
compile 'com.zaxxer:HikariCP:3.4.5'
2017-11-19 03:49:49 +00:00
}
task buildReadme(type: Javadoc) {
source = sourceSets.main.allJava
classpath = sourceSets.main.compileClasspath
destinationDir = projectDir
options.docletpath = [file('tools/skriptdoclet.jar')]
options.doclet = 'com.btk5h.skriptdoclet.SkriptDoclet'
options.addStringOption('file', 'README.md')
options.addStringOption('markdown', '-quiet')
}
2020-05-02 17:02:25 +00:00
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Gradle Jar File Example',
'Implementation-Version': version,
'Main-Class': 'com.mkyong.DateUtils'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
2020-05-18 12:34:43 +00:00
}