-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (53 loc) · 1.46 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import org.apache.tools.ant.filters.ReplaceTokens
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'rebel' // Live code modifications and debugging
apply plugin: 'com.bmuschko.nexus' // For Nexus Deploying
//noinspection GroovyUnusedAssignment
sourceCompatibility = 1.7
version = '0.7.1-SNAPSHOT'
group = 'com.herocc.bukkit'
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath group: 'org.zeroturnaround', name: 'gradle-jrebel-plugin', version: '1.1.2'
}
}
jar.dependsOn(generateRebel)
repositories {
mavenCentral()
maven { url 'https://hub.spigotmc.org/nexus/content/groups/public' }
}
dependencies {
compile group: 'org.bukkit', name: 'bukkit', version: '1.12.2-R0.1-SNAPSHOT'
}
idea {
module {
downloadJavadoc = true
}
}
ext {
// Placeholders for configuration filtering
description = 'Core utilities for HeroiCraft'
author = 'HeroCC <https://herocc.com>'
javaPackage = 'com.herocc.bukkit.core'
resourceTokens = [
'Name' : rootProject.name,
'Description': description,
'Version': version,
'Author' : author
];
}
processResources {
include 'Reference.java', 'plugin.yml', 'config.yml'
filter ReplaceTokens, tokens: resourceTokens
}
nexus {
sign = false
repositoryUrl = 'https://repo.herocc.com/repository/maven-releases/'
snapshotRepositoryUrl = 'https://repo.herocc.com/repository/maven-snapshots/'
}