Skip to content

Commit

Permalink
Bump version and improve publishing setup
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Dec 22, 2023
1 parent c389502 commit 3e179e4
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
/*
*/

buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.github.breadmoirai:github-release:2.5.2"
}
}

plugins {
id "ca.coglinc.javacc" version "2.4.0"
id "org.sonarqube" version "4.0.0.2929"
Expand All @@ -13,8 +24,9 @@ apply plugin: 'idea'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: "jacoco"
apply plugin: "com.github.breadmoirai.github-release"

version = '0.27.1'
version = '0.28.0'

java {
sourceCompatibility = JavaVersion.VERSION_1_8
Expand All @@ -29,6 +41,7 @@ ext {
javaccSource = file(javaccSourcePath)
mainSource = file('src/main/java/')
testSource = file('src/test/java/')
githubToken = System.getenv('GITHUB_TOKEN')
}

eclipse {
Expand Down Expand Up @@ -199,11 +212,26 @@ signing {
sign publishing.publications.Release
}

githubRelease {
token project.ext.githubToken == null ? "" : project.ext.githubToken
owner = "simonpoole"
tagName = project.version
releaseName = project.version
targetCommitish = "master"
generateReleaseNotes = true
overwrite = true
}

afterEvaluate {
publishReleasePublicationToSonatypeRepository.dependsOn githubRelease
}

// In this section you declare where to find the dependencies of your project
repositories {
mavenCentral()
}


// In this section you declare the dependencies for your production and test code
dependencies {
// the annotations dependency is really compileOnly, but maven-publish can't be convinced to
Expand Down

0 comments on commit 3e179e4

Please sign in to comment.