forked from gregsh/Clojure-Kit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
82 lines (71 loc) · 1.79 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
plugins {
id "org.jetbrains.intellij" version "0.3.4"
}
version = "${version}"
defaultTasks "clean", "artifacts", "test"
allprojects {
apply plugin: "java"
apply plugin: "kotlin"
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
tasks.compileKotlin.kotlinOptions.apiVersion = kotlinApiVersion
tasks.compileTestKotlin.kotlinOptions.apiVersion = kotlinApiVersion
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:clojure:1.9.0"
testRuntime "org.clojure:clojurescript:1.9.946"
compile files("${System.properties['java.home']}/../lib/tools.jar")
}
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]) {}