@@ -64,7 +64,7 @@ def getVersion = { boolean considerSnapshot ->
6464}
6565
6666// for publishing a release, call Gradle with Environment Variable RELEASE:
67- // RELEASE=true gradle JSQLParser:publish
67+ // RELEASE=true gradle JSQLParser:publish
6868version = getVersion( ! System . getenv(" RELEASE" ) )
6969group = ' com.github.jsqlparser'
7070description = ' JSQLParser library'
@@ -298,7 +298,7 @@ pmd {
298298
299299checkstyle {
300300 sourceSets = [sourceSets. main, sourceSets. test]
301- configFile = rootProject. file(' config/checkstyle/checkstyle.xml' )
301+ configFile = rootProject. file(' config/checkstyle/checkstyle.xml' )
302302}
303303
304304spotless {
@@ -540,21 +540,14 @@ publishing {
540540 repositories {
541541 maven {
542542 name " ossrh"
543-
544- def releasesRepoUrl = " https://oss.sonatype.org/service/local/staging/deploy/maven2"
545- def snapshotsRepoUrl= " https://oss.sonatype.org/content/repositories/snapshots"
543+ def releasesRepoUrl = " https://oss.sonatype.org/service/local/staging/deploy/maven2/"
544+ def snapshotsRepoUrl= " https://oss.sonatype.org/content/repositories/snapshots/"
546545 url = version. endsWith(' SNAPSHOT' ) ? snapshotsRepoUrl : releasesRepoUrl
547546 credentials {
548547 username = System . getenv(" ossrhUsername" )
549548 password = System . getenv(" ossrhPassword" )
550549 }
551550 }
552- // maven {
553- // name = "GitHubPackages"
554- //
555- // url = uri("https://maven.pkg.github.com/JSQLParser/jsqlparser")
556- // credentials(PasswordCredentials)
557- // }
558551 }
559552}
560553
0 commit comments