Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions SpellChecker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,6 @@ repositories {
mavenCentral()
}
publishing {
repositories {
maven {
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
url = isReleaseVersion ? releasesRepoUrl : snapshotsRepoUrl
credentials { // Credentials usually kept in user's .gradle/gradle.properties
// We must defensively check for these properties so Travis CI build works
username = project.hasProperty('ossrhToken') ? ossrhToken : 'unknown'
password = project.hasProperty('ossrhTokenPassword') ? ossrhTokenPassword : 'unknown'
}
}
}
publications {
maven(MavenPublication) {

Expand Down
19 changes: 17 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
//plugins {
plugins {
// id 'com.github.spotbugs' version '5.0.12'
//}
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
}

apply plugin: 'io.github.gradle-nexus.publish-plugin'

// We require building with JDK 17 or later. Built artifact compatibility
// is controlled by javaLanguageVersion
Expand Down Expand Up @@ -70,3 +73,15 @@ subprojects {
options.compilerArgs << '-Xlint:deprecation' << '-Xlint:unchecked'
}
}

nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
// We must defensively check for these properties so CI builds work
username.set(project.hasProperty('sonatypeUsername') ? sonatypeUsername : 'unknown')
password.set(project.hasProperty('sonatypePassword') ? sonatypePassword : 'unknown')
}
}
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
pluginManagement {
repositories {
gradlePluginPortal()
}
}

rootProject.name = 'SpellChecker'

include 'SpellChecker', 'SpellCheckerDemo'