This repository has been archived by the owner on Dec 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
77 lines (66 loc) · 1.61 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
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'java'
id 'antlr'
id 'org.jetbrains.kotlin.jvm' version '1.3.50'
id 'maven-publish'
}
group 'com.taskbase.bitmark'
archivesBaseName = 'bitmark-parser'
version '0.9.1'
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDirs = ["src/main/java", "build/generated-src/antlr/main"]
}
}
}
dependencies {
antlr "org.antlr:antlr4:4.7.2"
compile 'com.google.code.gson:gson:2.8.5'
compile 'org.apache.velocity:velocity:1.7'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testCompile 'junit:junit:4.12'
}
compileKotlin {
dependsOn(generateGrammarSource)
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
dependsOn(generateGrammarSource)
kotlinOptions.jvmTarget = "1.8"
}
test {
}
generateGrammarSource {
// arguments = ['-Dlanguage=JavaScript']
// outputDirectory = file('build/generated-src/main/javascript')
}
publishing {
repositories {
maven {
name = "Github"
//url = uri("https://maven.pkg.github.com/getMoreBrain/bitmark-parser")
url = uri("https://maven.pkg.github.com/taskbase/bitmark-parser")
credentials {
username = findProperty("github.username")
password = findProperty("github.token")
}
}
}
publications {
register("jar", MavenPublication) {
from(components["java"])
pom {
url.set("https://github.com/taskbase/bitmark-parser.git")
}
}
}
}