Skip to content

Commit

Permalink
Adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasSchaub committed Jul 5, 2023
1 parent bd8ae87 commit e9fc4c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish-to-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@

name: Publish package to the Maven Central Repository
on:
release:
types: [created]
push:
branches: [ "main" ]
#release:
#types: [created]
jobs:
publish:
runs-on: ubuntu-latest
Expand Down
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ plugins {
id 'java-library'
id 'java'
id("com.diffplug.spotless") version "6.19.0"
id 'org.gradle.maven-publish'
id 'maven-publish'
//id 'signing'
}

Expand Down Expand Up @@ -94,8 +94,8 @@ artifacts {

publishing {
publications {
mavenJava(MavenPublication) {

//mavenJava(MavenPublication) {
maven(MavenPublication) {
groupId = 'io.github.jonasschaub'
artifactId = 'ART2a-Clustering-for-Java'
//note: this version has been published, do not try to publish it again! version 1.0.1.1 was also already used for publishing!
Expand Down Expand Up @@ -172,6 +172,7 @@ publishing {
}
repositories {
maven {
name = "OSSRH"
//these two lines did not work because dir() apparently asks for a local path
//def releasesRepoUrl = layout.buildDirectory.dir('https://s01.oss.sonatype.org/content/repositories/releases/')
//def snapshotsRepoUrl = layout.buildDirectory.dir('https://s01.oss.sonatype.org/content/repositories/snapshots/')
Expand Down

0 comments on commit e9fc4c3

Please sign in to comment.