Skip to content

Commit

Permalink
Upgrade to plugin publish 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
radarsh committed Oct 25, 2022
1 parent c3964eb commit 3c3a95f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
id 'maven-publish'
id 'idea'
id 'jacoco'
id 'com.gradle.plugin-publish' version '0.19.0'
id 'com.gradle.plugin-publish' version '1.0.0'
id 'com.github.kt3k.coveralls' version '2.12.0'
}

Expand Down
26 changes: 4 additions & 22 deletions gradle/publishing.gradle
Original file line number Diff line number Diff line change
@@ -1,35 +1,17 @@
task sourceJar(type: Jar) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}

publishing {
publications {
module(MavenPublication) {
from components.java

artifact(sourceJar) {
classifier = 'sources'
}
}
}
}

pluginBundle {
website = 'https://github.com/radarsh/gradle-test-logger-plugin'
vcsUrl = 'https://github.com/radarsh/gradle-test-logger-plugin'
description = 'A Gradle plugin for printing beautiful logs on the console while running tests'
tags = ['test', 'logging', 'console', 'terminal', 'groovy']
}

gradlePlugin {
plugins {
testLoggerPlugin {
id = 'com.adarshr.test-logger'
displayName = 'Gradle Test Logger Plugin'
description = 'A Gradle plugin for printing beautiful logs on the console while running tests'
implementationClass = 'com.adarshr.gradle.testlogger.TestLoggerPlugin'
}
}

mavenCoordinates {
groupId = project.group
artifactId = project.name
}
}

0 comments on commit 3c3a95f

Please sign in to comment.