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

Add release and snapshot workflows on CI #268

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Goooler
Copy link
Collaborator

@Goooler Goooler commented Aug 26, 2024

tree .m2/repository/me/champeau/jmh/

.m2/repository/me/champeau/jmh/
├── jmh-gradle-plugin
│   ├── 0.7.3-SNAPSHOT
│   │   ├── jmh-gradle-plugin-0.7.3-SNAPSHOT-javadoc.jar
│   │   ├── jmh-gradle-plugin-0.7.3-SNAPSHOT-javadoc.jar.asc
│   │   ├── jmh-gradle-plugin-0.7.3-SNAPSHOT-sources.jar
│   │   ├── jmh-gradle-plugin-0.7.3-SNAPSHOT-sources.jar.asc
│   │   ├── jmh-gradle-plugin-0.7.3-SNAPSHOT.jar
│   │   ├── jmh-gradle-plugin-0.7.3-SNAPSHOT.jar.asc
│   │   ├── jmh-gradle-plugin-0.7.3-SNAPSHOT.module
│   │   ├── jmh-gradle-plugin-0.7.3-SNAPSHOT.module.asc
│   │   ├── jmh-gradle-plugin-0.7.3-SNAPSHOT.pom
│   │   ├── jmh-gradle-plugin-0.7.3-SNAPSHOT.pom.asc
│   │   └── maven-metadata-local.xml
│   └── maven-metadata-local.xml
└── me.champeau.jmh.gradle.plugin
    ├── 0.7.3-SNAPSHOT
    │   ├── maven-metadata-local.xml
    │   ├── me.champeau.jmh.gradle.plugin-0.7.3-SNAPSHOT.pom
    │   └── me.champeau.jmh.gradle.plugin-0.7.3-SNAPSHOT.pom.asc
    └── maven-metadata-local.xml

5 directories, 16 files


cat .m2/repository/me/champeau/jmh/jmh-gradle-plugin/0.7.3-SNAPSHOT/jmh-gradle-plugin-0.7.
3-SNAPSHOT.pom

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <!-- This module was also published with a richer model, Gradle metadata,  -->
  <!-- which should be used instead. Do not delete the following line which  -->
  <!-- is to indicate to Gradle or any Gradle module metadata file consumer  -->
  <!-- that they should prefer consuming it instead. -->
  <!-- do_not_remove: published-with-gradle-metadata -->
  <modelVersion>4.0.0</modelVersion>
  <groupId>me.champeau.jmh</groupId>
  <artifactId>jmh-gradle-plugin</artifactId>
  <version>0.7.3-SNAPSHOT</version>
  <name>Gradle Plugin for JMH</name>
  <description>Integrates the JMH microbenchmarking framework with Gradle, providing conventional ways to setup sources and execute micro-benchmarks with JMH. Also known as the jmh-gradle-plugin.</description>
  <url>https://github.com/melix/jmh-gradle-plugin</url>
  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>melix</id>
      <name>Cédric Champeau</name>
      <url>https://melix.github.io/blog</url>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:git://github.com/melix/jmh-gradle-plugin.git</connection>
    <developerConnection>scm:git:ssh://[email protected]/melix/jmh-gradle-plugin.git</developerConnection>
    <url>https://github.com/melix/jmh-gradle-plugin</url>
  </scm>
  <dependencies>
    <dependency>
      <groupId>org.openjdk.jmh</groupId>
      <artifactId>jmh-core</artifactId>
      <version>1.37</version>
      <scope>runtime</scope>
    </dependency>
  </dependencies>
</project>

Comment on lines +26 to +31
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_SECRET }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USER }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_KEY_PASSWORD }}
Copy link
Collaborator Author

@Goooler Goooler Aug 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

@Goooler Goooler Aug 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And we can configure them for melix/japicmp-gradle-plugin#78 too.

@Goooler Goooler force-pushed the migrate-to-vanniktech-maven-publish branch from 743be0d to f2078bb Compare August 27, 2024 01:23
gradle.properties Outdated Show resolved Hide resolved
gradle.properties Outdated Show resolved Hide resolved
.github/workflows/release.yml Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants