Skip to content

Commit

Permalink
Publish on maven central, fix #22
Browse files Browse the repository at this point in the history
  • Loading branch information
parttimenerd committed Dec 13, 2023
1 parent e30e060 commit cef3bc0
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
![Build](https://github.com/parttimenerd/intellij-profiler-plugin/workflows/Build/badge.svg)
[![Version](https://img.shields.io/jetbrains/plugin/v/20937-java-jfr-profiler.svg)](https://plugins.jetbrains.com/plugin/20937-java-jfr-profiler)
[![Downloads](https://img.shields.io/jetbrains/plugin/d/20937-java-jfr-profiler.svg)](https://plugins.jetbrains.com/plugin/20937-java-jfr-profiler)
![Maven Central](https://img.shields.io/maven-central/v/me.bechberger/intellij-profiler-plugin)

<!-- Plugin description -->

Expand Down
49 changes: 48 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import org.jetbrains.changelog.Changelog
import org.jetbrains.changelog.markdownToHTML
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import kotlin.math.sign

group = "me.bechberger"
description = "A profiler plugin for Java based on JFR and Firefox Profiler"
Expand Down Expand Up @@ -41,9 +42,14 @@ plugins {
id("org.jetbrains.qodana") version "2023.2.1"
id("com.github.ben-manes.versions") version "0.50.0"
idea
signing
id("org.hibernate.build.maven-repo-auth") version "3.0.4"
}

apply { plugin("com.github.johnrengelman.shadow") }
apply {
plugin("com.github.johnrengelman.shadow")
plugin("org.hibernate.build.maven-repo-auth")
}

java {
toolchain {
Expand Down Expand Up @@ -194,6 +200,47 @@ tasks {
}*/
}

publishing {
repositories {
maven {
name = "ossrh"
url = uri("https://s01.oss.sonatype.org/content/repositories/releases/")
}
}
publications {
create<MavenPublication>("mavenJava") {
artifactId = "intellij-profiler-plugin"
pom {
name = "IntelliJ Profiler Plugin"
description = project.description
url = "https://github.com/parttimenerd/intellij-profiler-plugin"
version = properties("pluginVersion")
licenses {
license {
name = "MIT"
url = "https://opensource.org/license/MIT/"
}
}
developers {
developer {
name = "Johannes Bechberger"
email = "[email protected]"
}
}
scm {
url = properties("pluginRepositoryUrl")
connection = ProjectInfo().scm
developerConnection = ProjectInfo().scm
}
}
}
}
}

signing {
sign(publishing.publications["mavenJava"])
}

repositories {
maven {
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
Expand Down

0 comments on commit cef3bc0

Please sign in to comment.