-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
115 lines (91 loc) · 2.65 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
plugins {
id "com.github.johnrengelman.shadow" version "7.1.2" apply false
}
allprojects {
apply plugin: 'idea'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
group = 'fr.hyriode'
version = '1.3.9-SNAPSHOT'
java {
withSourcesJar()
withJavadocJar()
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
configurations.all {
// Check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
compileJava {
sourceCompatibility = JavaVersion.VERSION_1_8
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
maven {
name = 'HyriAPI_maven'
url = 'https://maven.pkg.github.com/Hyriode/HyriAPI/'
credentials {
username System.getenv('GITHUB_USERNAME')
password System.getenv('GITHUB_TOKEN')
}
}
maven {
name = 'HyriSpigot_maven'
url = 'https://maven.pkg.github.com/Hyriode/HyriSpigot/'
credentials {
username System.getenv('GITHUB_USERNAME')
password System.getenv('GITHUB_TOKEN')
}
}
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven {
name 'elmakers-maven'
url 'https://maven.elmakers.com/repository/'
}
}
tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
}
}
archivesBaseName = 'Hyrame'
dependencies {
compileOnly 'fr.hyriode:spigot-impl:1.8.8-SNAPSHOT'
api 'fr.hyriode:hyriapi:1.5.2-SNAPSHOT'
api 'fr.hyriode:spigot-api:1.8.8-SNAPSHOT'
api 'xyz.xenondevs:particle:1.8.1'
}
publishing {
publications {
maven(MavenPublication) {
from components.java
pom {
groupId = project.group
artifactId = 'hyrame'
version = project.version
name = 'Hyrame'
description = 'Framework to create games and plugins easily.'
url = 'https://github.com/Hyriode/Hyrame'
}
}
}
repositories {
maven {
credentials {
username System.getenv('GITHUB_USERNAME')
password System.getenv('GITHUB_TOKEN')
}
name = "Hyrame_maven"
url = "https://maven.pkg.github.com/Hyriode/Hyrame"
}
}
}