Diff
checker
Text
Text
Images
Documents
Excel
Folders
Legal
Enterprise
Desktop
Pricing
Sign in
Download Diffchecker Desktop
Compare text
Find the difference between two text files
Tools
History
Real-time editor
Hide whitespace changes
Hide unchanged lines
Disable line wrap
Layout
Split
Unified
Diff precision
Smart
Word
Char
Text styles
Change appearance
Syntax highlighting
Choose syntax
Ignore
Transform text
Go to first change
Edit input
Diffchecker Desktop
The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!
Get Desktop
OSSRH to Central Portal (with jreleaser)
Created
last year
Diff never expires
Clear
Export
Share
Explain
13 removals
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
79 lines
Copy
44 additions
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
111 lines
Copy
plugins {
plugins {
id 'java-library'
id 'java-library'
id 'signing'
id 'signing'
id 'maven-publish'
id 'maven-publish'
Copy
Copied
Copy
Copied
id 'org.jreleaser' version '1.17.0'
}
}
repositories {
repositories {
mavenCentral()
mavenCentral()
}
}
task sourcesJar(type: Jar) {
task sourcesJar(type: Jar) {
archiveClassifier.set('sources')
archiveClassifier.set('sources')
from sourceSets.main.allSource
from sourceSets.main.allSource
}
}
task javadocJar(type: Jar) {
task javadocJar(type: Jar) {
archiveClassifier.set('javadoc')
archiveClassifier.set('javadoc')
from tasks.javadoc.destinationDir
from tasks.javadoc.destinationDir
}
}
publishing {
publishing {
publications {
publications {
Copy
Copied
Copy
Copied
maven
Java
(MavenPublication) {
maven
(MavenPublication) {
from components.java
from components.java
artifact sourcesJar
artifact sourcesJar
artifact javadocJar
artifact javadocJar
groupId = 'com.example'
groupId = 'com.example'
version = '1.0.0'
version = '1.0.0'
artifactId = 'sample-package'
artifactId = 'sample-package'
pom {
pom {
name.set('Sample package')
name.set('Sample package')
description.set('This is sample.')
description.set('This is sample.')
url.set('https://github.com/your-github-name/repository-name')
url.set('https://github.com/your-github-name/repository-name')
licenses {
licenses {
license {
license {
name.set('MIT License')
name.set('MIT License')
url.set('https://opensource.org/licenses/MIT')
url.set('https://opensource.org/licenses/MIT')
}
}
}
}
developers {
developers {
developer {
developer {
id.set('Your id')
id.set('Your id')
name.set('Your name')
name.set('Your name')
email.set('???@???.???')
email.set('???@???.???')
}
}
}
}
scm {
scm {
connection.set('scm:git:git://github.com/your-github-name/repository-name.git')
connection.set('scm:git:git://github.com/your-github-name/repository-name.git')
developerConnection.set('scm:git:ssh://github.com/your-github-name/repository-name.git')
developerConnection.set('scm:git:ssh://github.com/your-github-name/repository-name.git')
url.set('https://github.com/your-github-name/repository-name')
url.set('https://github.com/your-github-name/repository-name')
}
}
}
}
}
}
}
}
repositories {
repositories {
maven {
maven {
Copy
Copied
Copy
Copied
name 'OSSRH'
url
= layout.buildDirectory.dir('
staging
-
deploy
')
url
uri('https://s01.oss.sonatype.org/service/local/
staging
/
deploy
/maven2/')
credentials {
username = project.findProperty('ossrhUsername')?.toString()
password = project.findProperty('ossrhPassword')?.toString()
}
}
}
}
}
}
}
Copy
Copied
Copy
Copied
def githubToken = project.findProperty('githubToken')
def gpgPublicKey = project.findProperty('gpgPublicKey')
def gpgSecretKey = project.findProperty('gpgSecretKey')
def gpgSecretKey = project.findProperty('gpgSecretKey')
def gpgPassphrase = project.findProperty('gpgPassphrase')
def gpgPassphrase = project.findProperty('gpgPassphrase')
Copy
Copied
Copy
Copied
signing {
def centralUsername = project.findProperty('centralUsername')
useInMemoryPgpKeys
(gpgSecretKey
,
gpgPassphrase)
def centralPassword = project.findProperty('centralPassword')
sign publishing.publications.mavenJava
jreleaser {
project {
gitRootSearch = true
}
release {
github {
token.set(githubToken)
}
}
signing {
active = 'ALWAYS'
armored = true
mode = 'MEMORY'
publicKey.set(gpgPublicKey)
secretKey.set
(gpgSecretKey
)
passphrase.set(
gpgPassphrase)
}
deploy {
maven {
mavenCentral {
sonatype {
active = 'ALWAYS'
url = 'https://central.sonatype.com/api/v1/publisher'
username.set(centralUsername)
password.set(centralPassword)
stagingRepository('build/staging-deploy')
}
}
}
}
}
}
Saved diffs
Original text
Open file
plugins { id 'java-library' id 'signing' id 'maven-publish' } repositories { mavenCentral() } task sourcesJar(type: Jar) { archiveClassifier.set('sources') from sourceSets.main.allSource } task javadocJar(type: Jar) { archiveClassifier.set('javadoc') from tasks.javadoc.destinationDir } publishing { publications { mavenJava(MavenPublication) { from components.java artifact sourcesJar artifact javadocJar groupId = 'com.example' version = '1.0.0' artifactId = 'sample-package' pom { name.set('Sample package') description.set('This is sample.') url.set('https://github.com/your-github-name/repository-name') licenses { license { name.set('MIT License') url.set('https://opensource.org/licenses/MIT') } } developers { developer { id.set('Your id') name.set('Your name') email.set('???@???.???') } } scm { connection.set('scm:git:git://github.com/your-github-name/repository-name.git') developerConnection.set('scm:git:ssh://github.com/your-github-name/repository-name.git') url.set('https://github.com/your-github-name/repository-name') } } } } repositories { maven { name 'OSSRH' url uri('https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/') credentials { username = project.findProperty('ossrhUsername')?.toString() password = project.findProperty('ossrhPassword')?.toString() } } } } def gpgSecretKey = project.findProperty('gpgSecretKey') def gpgPassphrase = project.findProperty('gpgPassphrase') signing { useInMemoryPgpKeys(gpgSecretKey, gpgPassphrase) sign publishing.publications.mavenJava }
Changed text
Open file
plugins { id 'java-library' id 'signing' id 'maven-publish' id 'org.jreleaser' version '1.17.0' } repositories { mavenCentral() } task sourcesJar(type: Jar) { archiveClassifier.set('sources') from sourceSets.main.allSource } task javadocJar(type: Jar) { archiveClassifier.set('javadoc') from tasks.javadoc.destinationDir } publishing { publications { maven(MavenPublication) { from components.java artifact sourcesJar artifact javadocJar groupId = 'com.example' version = '1.0.0' artifactId = 'sample-package' pom { name.set('Sample package') description.set('This is sample.') url.set('https://github.com/your-github-name/repository-name') licenses { license { name.set('MIT License') url.set('https://opensource.org/licenses/MIT') } } developers { developer { id.set('Your id') name.set('Your name') email.set('???@???.???') } } scm { connection.set('scm:git:git://github.com/your-github-name/repository-name.git') developerConnection.set('scm:git:ssh://github.com/your-github-name/repository-name.git') url.set('https://github.com/your-github-name/repository-name') } } } } repositories { maven { url = layout.buildDirectory.dir('staging-deploy') } } } def githubToken = project.findProperty('githubToken') def gpgPublicKey = project.findProperty('gpgPublicKey') def gpgSecretKey = project.findProperty('gpgSecretKey') def gpgPassphrase = project.findProperty('gpgPassphrase') def centralUsername = project.findProperty('centralUsername') def centralPassword = project.findProperty('centralPassword') jreleaser { project { gitRootSearch = true } release { github { token.set(githubToken) } } signing { active = 'ALWAYS' armored = true mode = 'MEMORY' publicKey.set(gpgPublicKey) secretKey.set(gpgSecretKey) passphrase.set(gpgPassphrase) } deploy { maven { mavenCentral { sonatype { active = 'ALWAYS' url = 'https://central.sonatype.com/api/v1/publisher' username.set(centralUsername) password.set(centralPassword) stagingRepository('build/staging-deploy') } } } } }
Find difference