-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathbuild.gradle
82 lines (71 loc) · 2.36 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 {
jcenter()
maven { url 'http://clojars.org/repo' }
}
dependencies {
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:2.2.0'
classpath 'com.netflix.nebula:nebula-clojure-plugin:2.2.0'
}
}
plugins {
id 'nebula.netflixoss' version '2.2.9'
}
// Establish version and status
ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name
subprojects {
apply plugin: 'nebula.netflixoss'
apply plugin: 'nebula.provided-base'
apply plugin: 'nebula-clojure'
group = 'com.netflix.pigpen'
repositories {
jcenter()
maven { url 'http://clojars.org/repo' }
maven { url 'http://conjars.org/repo' }
}
license {
mapping('clj', 'SEMICOLON_STYLE')
}
jar {
from 'src/main/clojure'
}
tasks.uberjar.enabled=true
compileClojure {
jvmOptions {
jvmArgs '-Djava.awt.headless=true'
}
classpath = project.files(
project.compileJava.outputs,
classpath
)
}
clojuredoc {
includeNamespace 'pigpen.core'
includeNamespace 'pigpen.fold'
codox = [
srcDirUri: 'https://github.com/Netflix/PigPen/blob/master/',
srcLinenumAnchorPrefix: 'L'
]
}
////////////////////////////////////////////////////////////////////////////////
// Define a task that runs an nrepl server. The port is given with the nreplPort
// property:
// gradlew nrepl -PnreplPort=9999
// or put the property in ~/.gradle/gradle.properties
configurations { nrepl }
dependencies {
nrepl 'org.clojure:tools.nrepl:0.2.7'
nrepl 'org.clojure:clojure:1.6.0'
}
task nrepl(type: JavaExec) {
classpath project.sourceSets.main.clojure.srcDirs,
project.sourceSets.test.clojure.srcDirs,
sourceSets.test.runtimeClasspath,
sourceSets.main.runtimeClasspath,
configurations.nrepl
main = "clojure.main"
args '--eval', "(ns gradle-nrepl (:require [clojure.tools.nrepl.server :refer (start-server stop-server)]))",
'--eval', "(println \"Starting nrepl server on port $nreplPort\")",
'--eval', "(def server (start-server :port $nreplPort))"
}
}