Skip to content

Commit

Permalink
#309 Switch to regular Maven publishing using a "marker artifact"
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Jan 25, 2024
1 parent 6d4ca3f commit 5def6b7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 25 deletions.
21 changes: 0 additions & 21 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,6 @@ allprojects {
}
}

subprojects {
ext {
publishVariant = { String variant ->
publishing {
publications {
maven(MavenPublication) {
from components[variant]

// We have to perform some fancy renaming to make the plugin GAV coordinates match with docToolchain
groupId = group
artifactId = "org.aim42.${project.name.replaceAll('-', '.')}"
version = version
}
}
}
}
}
}

configure(subprojects) {
apply plugin: 'java'
apply plugin: 'groovy'
Expand Down Expand Up @@ -101,8 +82,6 @@ configure(subprojects) {
// The CodeNarc plugin performs quality checks on your project’s
// Groovy source files using CodeNarc and generates reports from these checks.
// apply plugin: 'codenarc'

project.ext.publishVariant('java')
}

/*
Expand Down
6 changes: 4 additions & 2 deletions htmlSanityCheck-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id 'java-library'
}

dependencies {
implementation libs.slf4j.api
testImplementation libs.slf4j.nop
Expand All @@ -8,8 +12,6 @@ dependencies {
implementation 'org.codehaus.groovy:groovy-dateutil'
}

//apply plugin: 'groovy'

tasks.register('copyResourceImages', Copy) {
from('src/main/resources') {
include '**/*.png'
Expand Down
13 changes: 12 additions & 1 deletion htmlSanityCheck-gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
apply plugin: 'java-gradle-plugin'
plugins {
id 'java-gradle-plugin'
}

gradlePlugin {
plugins {
htmlSanityCheck {
id = 'org.aim42.htmlSanityCheck'
implementationClass = 'org.aim42.htmlsanitycheck.HtmlSanityCheckPlugin'
}
}
}

dependencies {
testImplementation(
Expand Down

This file was deleted.

0 comments on commit 5def6b7

Please sign in to comment.