This repository has been archived by the owner on Apr 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbuild.gradle
54 lines (42 loc) · 1.63 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
buildscript {
repositories { jcenter() }
dependencies {
classpath "com.github.jruby-gradle:jruby-gradle-plugin:${jrubyVersion}"
classpath "org.asciidoctor:asciidoctor-gradle-plugin:${asciidoctorGradleVersion}"
}
}
apply plugin: "groovy"
apply plugin: 'maven-publish'
apply from: 'gradle/bash.gradle'
apply from: 'gradle/docs.gradle'
version = project.findProperty("newVersion") ?: project.findProperty("defaultVersion")
// Scripts docs generation
repositories {
jcenter()
// no https for rubgems :(
maven { url "http://rubygems-proxy.torquebox.org/releases/" }
maven { url "https://repo.spring.io/libs-snapshot-local" }
maven { url "https://repo.spring.io/libs-milestone-local" }
maven { url "https://repo.spring.io/libs-release-local" }
}
apply plugin: "com.github.jruby-gradle.base"
import com.github.jrubygradle.JRubyExec
dependencies {
jrubyExec "rubygems:asciidoctor:1.5.8"
compile "org.codehaus.groovy:groovy-all:${groovyVersion}"
compile "io.cloudpipelines:project-crawler:${projectCrawlerVersion}"
compile "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
compile "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:${jacksonVersion}"
}
jruby {
defaultRepositories false
}
task generateScriptsReadme(type: JRubyExec) {
script "${projectDir}/tools/coalesce-readme.rb"
scriptArgs "-i ${projectDir}/src/tasks/BASH_SCRIPTS.adoc", "-o ${projectDir}/src/tasks/README.adoc"// don't run on CI
enabled = !System.getenv("JENKINS_HOME")
}
generateDocs.dependsOn(generateScriptsReadme)
// Scripts docs generation
apply from: "gradle/custom.gradle"