-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
89 lines (72 loc) · 1.91 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
buildscript {
ext.kotlin_version = '1.2.51'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "com.github.johnrengelman.shadow" version "2.0.1"
}
subprojects {
group 'io.xorc'
version '1.1-SNAPSHOT'
apply plugin: 'kotlin'
repositories {
mavenCentral()
jcenter()
}
}
def clojarsUsername=project.properties['clojarsUsername'] ?: "unknown"
def clojarsPassword=project.properties['clojarsPassword'] ?: "unknown"
project(':runtime') {
apply plugin: 'maven-publish'
apply plugin: 'maven'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile 'org.msgpack:msgpack-core:0.8.13'
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'com.beust:klaxon:3.0.5'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
publishing {
repositories {
maven {
url "https://clojars.org/repo"
credentials(PasswordCredentials) {
username clojarsUsername
password clojarsPassword
}
}
}
publications {
"mavenJava"(MavenPublication) {
artifactId 'oam'
from components.java
artifact(sourcesJar)
}
}
}
}
project(":bin") {
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
archivesBaseName = 'jvm-oam'
mainClassName = 'io.xorc.oam.MainKt'
dependencies {
compile project(':runtime')
compile 'ch.qos.logback:logback-classic:1.2.3'
}
}