Skip to content

Commit 9ad418d

Browse files
committed
Add information for publishing to plugins.gradle.org
1 parent b95f5e3 commit 9ad418d

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

build.gradle

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ buildscript {
3030

3131
repositories {
3232
jcenter()
33+
maven {
34+
url "https://plugins.gradle.org/m2"
35+
}
3336
}
3437
}
3538

3639
plugins {
3740
id "com.jfrog.bintray" version "1.6"
41+
id "com.gradle.plugin-publish" version "0.9.4"
3842
}
3943

4044
apply plugin: 'kotlin'
@@ -43,7 +47,8 @@ apply plugin: 'maven-publish'
4347
sourceCompatibility = JavaVersion.VERSION_1_6
4448
targetCompatibility = JavaVersion.VERSION_1_6
4549

46-
version '0.5'
50+
version = '0.5'
51+
group = 'net.devrieze'
4752

4853
bintray {
4954
user = bintrayUser
@@ -71,7 +76,7 @@ publishing {
7176
publications {
7277
MyPublication(MavenPublication) {
7378
from components.java
74-
groupId 'net.devrieze'
79+
groupId group
7580
artifactId 'gradle-codegen'
7681

7782
artifact sourceJar {
@@ -81,6 +86,23 @@ publishing {
8186
}
8287
}
8388

89+
pluginBundle {
90+
website = 'https://github.com/pdvrieze/gradle-codegen.git'
91+
vcsUrl = 'https://github.com/pdvrieze/gradle-codegen.git'
92+
description = "A plugin to aid with codeGeneration without using buildSrc. It provides an additional generate section to sourceSets. In this section individual files to be generated can be specified. Each sourceset has an accompanying ...generator sourceSet where the actual generator source can live."
93+
tags = [ 'generate', 'codegen', 'code-generation' ]
94+
plugins {
95+
gradlecodegen {
96+
id = 'net.devrieze.gradlecodegen'
97+
displayName = 'Code generation plugin for gradle'
98+
}
99+
}
100+
mavenCoordinates {
101+
groupId = group
102+
artifactId = "gradle-codegen"
103+
}
104+
}
105+
84106
dependencies {
85107
compile gradleApi()
86108
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

0 commit comments

Comments
 (0)