Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Version 1.0.0. Setup publishing to gradle plugin repo
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewprenger committed Apr 13, 2015
1 parent e5e38f2 commit 11eb2f1
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ plugins {
id 'groovy'
id 'idea'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '0.9.0'
}

ext {
inceptionYear = '2015'
url = 'https://github.com/matthewprenger/CurseGradle'
git = 'https://github.com/matthewprenger/CurseGradle.git'
}

version = '1.0-SNAPSHOT'
version = '1.0.0'
group = 'com.matthewprenger'
description = 'Gradle plugin to upload artifacts to CurseForge'
archivesBaseName = 'CurseGradle'
Expand Down Expand Up @@ -56,3 +58,21 @@ assemble.dependsOn javadocJar, sourcesJar
it.options.deprecation = true
it.options.fork = true
}

pluginBundle {
website = project.url
vcsUrl = project.git
plugins {
curseGradlePlugin {
id = 'com.matthewprenger.cursegradle'
description = project.description
displayName = 'CurseGradle'
version = project.version
tags = ['curseforge', 'publish', 'minecraft']
}
}
}

if (!version.endsWith('-SNAPSHOT')) {
tasks.publish.dependsOn publishPlugins
}

0 comments on commit 11eb2f1

Please sign in to comment.