Skip to content

Commit

Permalink
initial build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
samrocketman committed Apr 28, 2019
1 parent 38aa9fe commit 2af6a1e
Showing 1 changed file with 89 additions and 0 deletions.
89 changes: 89 additions & 0 deletions build.gradle
@@ -0,0 +1,89 @@
plugins {
id 'org.jenkins-ci.jpi' version '0.31.0'
}

group = 'org.jenkins-ci.plugins'
version = '0.1-SNAPSHOT'
description = 'A multibranch SCM filter which searches for .jervis.yml or .travis.yml for filtering branches, tags, and pull requests.'

println "Using Groovy ${groovyVersion}"
println "Using Gradle ${GradleVersion.current().getVersion()}"
println "Using Java ${org.gradle.internal.jvm.Jvm.current()}"
println "Building ${archivesBaseName}-${version}"

jenkinsPlugin {
// version of Jenkins core this plugin depends on, must be 1.420 or later
coreVersion = '2.7.3'

// ID of the plugin, defaults to the project name without trailing '-plugin'
shortName = 'scm-filter-jervis'

// human-readable name of plugin
displayName = 'SCM Filter Jervis Plugin'

// URL for plugin on Jenkins wiki or elsewhere
url = 'https://wiki.jenkins.io/display/JENKINS/SCM+Filter+Jervis+Plugin'

// plugin URL on GitHub, optional
gitHubUrl = 'https://github.com/jenkinsci/scm-filter-jervis-plugin'

// use the plugin class loader before the core class loader, defaults to false
pluginFirstClassLoader = true

// optional list of package prefixes that your plugin doesn't want to see from core
maskClasses = 'groovy.grape org.apache.commons.codec'

// optional version number from which this plugin release is configuration-compatible
compatibleSinceVersion = '0.1'

// set the directory from which the development server will run, defaults to 'work'
//workDir = file('/tmp/jenkins')

// URL used to deploy the plugin, defaults to the value shown
// the system property 'jpi.repoUrl' can be used to override this option
repoUrl = 'https://repo.jenkins-ci.org/releases'

// URL used to deploy snapshots of the plugin, defaults to the value shown
// the system property 'jpi.snapshotRepoUrl' can be used to override this option
snapshotRepoUrl = 'https://repo.jenkins-ci.org/snapshots'

// enable injection of additional tests for checking the syntax of Jelly and other things
disabledTestInjection = false

// the output directory for the localizer task relative to the project root, defaults to the value shown
//localizerOutputDir = "${project.buildDir}/generated-src/localizer"

// disable configuration of Maven Central, the local Maven cache and the Jenkins Maven repository, defaults to true
//configureRepositories = false

// skip configuration of publications and repositories for the Maven Publishing plugin, defaults to true
//configurePublishing = false

// plugin file extension, either 'jpi' or 'hpi', defaults to 'hpi'
fileExtension = 'hpi'

// the developers section is optional, and corresponds to the POM developers section
developers {
developer {
id 'sag47'
name 'Sam Gleske'
email 'sam.mxracer@gmail.com'
}
}

// the licenses section is optional, and corresponds to the POM licenses section
licenses {
license {
name 'Apache License, Version 2.0'
url 'https://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
comments 'A business-friendly OSS license'
}
}
}

//http://www.gradle.org/docs/current/userguide/gradle_wrapper.html
//generate gradlew with: gradle wrapper
task wrapper(type: Wrapper) {
gradleVersion = '5.4.1'
}

0 comments on commit 2af6a1e

Please sign in to comment.