-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
78 lines (68 loc) · 1.58 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
buildscript {
ext.kotlin_version=kotlinVersion
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id 'org.jetbrains.intellij' version "0.2.17"
}
version = "${version}"
defaultTasks 'clean', 'artifacts', 'test'
allprojects {
apply plugin: 'java'
apply plugin: "kotlin"
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
sourceSets {
main {
java.srcDirs 'src', 'gen'
kotlin.srcDirs 'src'
resources.srcDirs 'resources'
}
test {
kotlin.srcDirs 'tests'
}
}
apply plugin: 'org.jetbrains.intellij'
intellij {
version ideaVersion
type 'IC'
plugins 'copyright'
updateSinceUntilBuild false
downloadSources = false
}
}
repositories {
mavenCentral()
maven { url "http://clojars.org/repo" }
}
dependencies {
testRuntime "org.clojure:clojurescript:1.8.51"
}
test {
useJUnit {}
include "**/*Test.class"
scanForTestClasses false
ignoreFailures true
beforeTest { descriptor ->
logger.lifecycle("Running ${descriptor}")
}
}
task plugin_jar(type: Jar, dependsOn: [rootProject.tasks['assemble']]) {
baseName = 'clojure-kit'
destinationDir = file(artifactsPath)
manifest { from "$rootDir/resources/META-INF/MANIFEST.MF" }
from(rootProject.sourceSets.main.output)
}
task plugin_zip(type: Zip, dependsOn: [plugin_jar]) {
baseName = 'ClojureKit'
destinationDir = file(artifactsPath)
from(tasks['plugin_jar'].outputs) {
into '/ClojureKit/lib'
}
}
task artifacts(dependsOn: [plugin_jar, plugin_zip]) {}