Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Clean up plugin publish configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdissel committed Apr 17, 2015
1 parent 7910741 commit b21822f
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 109 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
buildscript {
apply from: file('gradle/buildscript.gradle'), to: buildscript
plugins {
id "com.github.hierynomus.license" version "0.11.0"
}
apply from: script('license')

description 'Jenkins JobDSL plugin for Gradle'

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.4.0
version=0.4.1
8 changes: 0 additions & 8 deletions gradle/buildscript.gradle

This file was deleted.

63 changes: 0 additions & 63 deletions gradle/publishing.gradle

This file was deleted.

74 changes: 40 additions & 34 deletions plugin/plugin.gradle
Original file line number Diff line number Diff line change
@@ -1,45 +1,51 @@
apply plugin: 'groovy'
apply plugin: 'maven-publish'
plugins {
id 'groovy'
id 'com.gradle.plugin-publish' version '0.9.0'
id "com.github.ben-manes.versions" version "0.8"
}

ext {
libraries = [:]
versions = [:]
}

versions += [
spock : '1.0-groovy-2.3',
jenkinsJobDsl: '1.28',
]

libraries += [
jenkinsJobDsl: "org.jenkins-ci.plugins:job-dsl-core:${versions.jenkinsJobDsl}",
logging : 'ch.qos.logback:logback-classic:1.1.2',
spock : "org.spockframework:spock-core:${versions.spock}",
spockDeps : [
'org.objenesis:objenesis:2.1',
'cglib:cglib-nodep:3.1',
],
]

dependencies {
compile gradleApi()
compile 'org.codehaus.groovy:groovy:2.3.0'
compile 'org.jenkins-ci.plugins:job-dsl-core:1.26'
compile localGroovy()
compile libraries.jenkinsJobDsl

testCompile('org.spockframework:spock-core:0.7-groovy-2.0') {
exclude module: 'groovy-all'
testCompile(libraries.spock) {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile libraries.spockDeps
}

apply from: script('publishing')
pluginBundle {
website = 'https://github.com/pvdissel/gradle-jenkins-jobdsl'
vcsUrl = 'https://github.com/pvdissel/gradle-jenkins-jobdsl'
description = 'A Gradle plugin that let\'s you build and generate your Jenkins JobDSL scripts'
tags = ['jenkins', 'jobdsl']

archivesBaseName = "${rootProject.name}"

publishing {
publications {
main(MavenPublication) {
artifactId project.archivesBaseName
plugins {
jenkinsJobDsl {
id = 'nl.ikoodi.jenkins.jobdsl'
displayName = 'Gradle Jenkins JobDSL Plugin'
}
}
}

task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc.outputs.files
}

task groovydocJar(type: Jar) {
classifier = 'groovydoc'
from groovydoc.outputs.files
}

artifacts {
archives sourcesJar
archives javadocJar
archives groovydocJar
}

0 comments on commit b21822f

Please sign in to comment.