-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (56 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
plugins {
id 'scala'
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.10.0'
}
group 'decaf.tools'
version '2019.1.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.scala-lang', name: 'scala-library', version: '2.12.0'
compile group: 'org.scala-lang.modules', name: 'scala-parser-combinators_2.12', version: '1.0.5'
compile gradleApi()
testCompile group: 'org.scalatest', name: 'scalatest_2.12', version: '3.0.1'
testCompile group: 'junit', name: 'junit', version: '4.10'
}
task assembly(type: Jar) {
manifest {
attributes 'Implementation-Title': project.name,
'Implementation-Version': project.version,
'Main-Class': 'decaf.tools.ll1pg.Main'
}
exclude 'decaf.tools.ll1pg.gradle'
exclude 'META-INF/gradle-plugins/**'
from {
configurations.compile.filter {
it.path.contains('scala')
}.collect {
it.isDirectory() ? it : zipTree(it)
}
}
with jar
}
pluginBundle {
website = 'https://github.com/paulzfm/ll1pg'
description = 'A gradle plugin to apply ll1pg'
vcsUrl = 'https://github.com/paulzfm/ll1pg'
tags = ['parser generator', 'LL']
plugins {
LL1pgPlugin {
// id is captured from java-gradle-plugin configuration
displayName = 'Gradle plugin for ll1pg'
}
}
}
gradlePlugin {
plugins {
LL1pgPlugin {
id = 'decaf.tools.ll1pg'
implementationClass = 'decaf.tools.ll1pg.gradle.LL1pgPlugin'
}
}
}