Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALFREDOPS-849 remove pluginManager.withPlugin from publish gradle #151

Merged
merged 1 commit into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion alfred-telemetry-platform/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id 'idea'
id 'java'
id 'maven-publish'
id 'eu.xenit.alfresco' version "1.1.0"
id 'eu.xenit.amp' version "1.1.0"
}
Expand Down
1 change: 0 additions & 1 deletion alfred-telemetry-solr/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
plugins {
id 'com.github.johnrengelman.shadow' version '7.1.2' apply false
id 'maven-publish'
id 'eu.xenit.alfresco' version '1.1.0' apply false
id 'base'
id 'idea'
Expand Down
81 changes: 40 additions & 41 deletions publish.gradle
Original file line number Diff line number Diff line change
@@ -1,55 +1,54 @@
pluginManager.withPlugin('maven-publish') {
apply plugin: 'signing'
apply plugin: 'signing'
apply plugin: 'maven-publish'

publishing {
publishing {

repositories {
if ("${project.version}".endsWith('-SNAPSHOT')) {
sonatypeSnapshots {
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
credentials {
username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
}
repositories {
if ("${project.version}".endsWith('-SNAPSHOT')) {
sonatypeSnapshots {
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
credentials {
username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
}
} else {
sonatypeMavenCentral {
url = "https://s01.oss.sonatype.org/service/local/"
credentials {
username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
}
}
} else {
sonatypeMavenCentral {
url = "https://s01.oss.sonatype.org/service/local/"
credentials {
username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
}
}
}
publications {
all {
pom {
url = 'https://github.com/xenit-eu/alfred-telemetry'
name = "alfred-telemetry"
description = project.description
}
publications {
all {
pom {
url = 'https://github.com/xenit-eu/alfred-telemetry'
name = "alfred-telemetry"
description = project.description

scm {
connection = 'scm:git:[email protected]:xenit-eu/alfred-telemetry.git'
developerConnection = 'scm:git:[email protected]:xenit-eu/alfred-telemetry.git'
url = 'https://github.com/xenit-eu/alfred-telemetry.git'
}
developers {
developer {
id = "xenit"
name = "Xenit"
description = "Xenit Solutions NV"
}
scm {
connection = 'scm:git:[email protected]:xenit-eu/alfred-telemetry.git'
developerConnection = 'scm:git:[email protected]:xenit-eu/alfred-telemetry.git'
url = 'https://github.com/xenit-eu/alfred-telemetry.git'
}
developers {
developer {
id = "xenit"
name = "Xenit"
description = "Xenit Solutions NV"
}
}

licenses {
license {
name = 'GNU Lesser General Public License v3.0'
url = 'https://www.gnu.org/licenses/lgpl-3.0.txt'
}
licenses {
license {
name = 'GNU Lesser General Public License v3.0'
url = 'https://www.gnu.org/licenses/lgpl-3.0.txt'
}
}
}
}
}
}
}
Loading