Add first classes Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Co-committed-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
47 lines
1.0 KiB
Groovy
47 lines
1.0 KiB
Groovy
apply plugin: 'groovy'
|
|
|
|
group = 'tech.avroid'
|
|
version = '0.1.0'
|
|
description = 'Jenkins Shared Library'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
url "https://repo.jenkins-ci.org/releases/"
|
|
}
|
|
maven {
|
|
url "https://repo.jenkins-ci.org/public/"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.codehaus.groovy:groovy-all:3.0.2'
|
|
implementation 'com.cloudbees:groovy-cps:1.32'
|
|
implementation 'org.jenkins-ci.main:jenkins-core:2.164.1'
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
groovy {
|
|
srcDirs = ['src', 'vars']
|
|
}
|
|
}
|
|
}
|
|
|
|
groovydoc {
|
|
// Set document and window titles.
|
|
docTitle = "Avroid Shared library"
|
|
windowTitle = "Avroid Shared library"
|
|
|
|
header = '''\
|
|
<img src="http://www.mrhaki.com/images/haki-logo-black-64.png"/>
|
|
<h2>Sample project</h2>
|
|
'''.stripIndent()
|
|
|
|
// Set custom footer for generated documentation.
|
|
footer = """\
|
|
<div class="custom-footer">
|
|
Generated on: ${new Date().format('yyyy-MM-dd HH:mm:ss')}
|
|
</div>""".stripIndent()
|
|
}
|