-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (54 loc) · 1.52 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
buildscript {
ext.kotlin_version = '1.0.1'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.9.7"
}
}
plugins {
id "com.jfrog.bintray" version "1.6"
}
apply plugin: 'kotlin'
group 'net.serverpeon'
version '1.0-alpha3-SNAPSHOT'
allprojects {
repositories {
mavenCentral()
jcenter()
}
apply plugin: 'maven-publish'
}
dependencies {
compile project(":implementation")
compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.4'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.4'
}
publishing {
publications {
// Import sub-project publications
subprojects.forEach { project ->
//noinspection GrUnresolvedAccess,GroovyAssignabilityCheck
addAll(project.publishing.publications)
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['api', 'implementation']
pkg {
repo = 'maven'
name = 'discordkt'
userOrg = user
licenses = ["MIT"]
vcsUrl = "https://github.com/Kiskae/DiscordKt.git"
githubRepo = "Kiskae/DiscordKt"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.12'
}