forked from alpas/alpas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
114 lines (100 loc) · 3.21 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
buildscript {
ext {
kotlinVersion = "1.3.61"
}
repositories {
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4"
}
}
allprojects {
group = "dev.alpas"
version = '0.10.14'
}
subprojects { project ->
apply plugin: "kotlin"
repositories {
jcenter()
maven { url = uri("https://jitpack.io") }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}"
compile "org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.allWarningsAsErrors = true
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
if (project.name != 'runner') {
apply plugin: "maven-publish"
apply plugin: "com.jfrog.bintray"
task generateSourcesJar(type: Jar) {
classifier = "sources"
from sourceSets.main.allSource
}
task generateJavadoc(type: Jar) {
classifier = "javadoc"
}
publishing {
publications {
bintray(MavenPublication) {
from components.java
artifact generateSourcesJar
artifact generateJavadoc
groupId project.group
artifactId project.name
version project.version
pom {
name = project.name
description = "A web framework for Kotlin."
url = "https://github.com/ashokgelal/alpas"
licenses {
license {
name = "The Apache Software License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "ashokgelal"
name = "Ashok Gelal"
email = "[email protected]"
}
}
scm {
url = "https://github.com/ashokgelal/alpas.git"
}
}
}
}
}
bintray {
user = System.getenv("BINTRAY_USER")
key = System.getenv("BINTRAY_KEY")
publications = ["bintray"]
publish = true
pkg {
repo = "Alpas"
name = project.name
licenses = ["Apache-2.0"]
vcsUrl = "https://github.com/ashokgelal/alpas.git"
labels = ["Kotlin", "web framework"]
version {
name = project.version
released = new Date()
vcsTag = project.version
}
}
}
}
test {
useJUnitPlatform()
}
}