Diff
checker
Testo
Testo
Immagini
Documenti
Excel
Cartelle
Legal
Enterprise
Applicazione per desktop
Prezzi
Accedi
Scarica Diffchecker Desktop
Confronta il testo
Trova la differenza tra due file di testo
Strumenti
Cronologia
Editor live
Nascondi spazi bianchi
Comprimi invariate
Senza a capo
Layout
Diviso
Unificato
Livello di dettaglio
Intelligente
Parola
Carattere
Stili testo
Modifica aspetto
Evidenziazione sintassi
Scegli sintassi
Ignora
Trasforma testo
Vai alla prima modifica
Modifica input
Diffchecker Desktop
Il modo più sicuro per usare Diffchecker. Ottieni l'app Diffchecker Desktop: i tuoi diff non lasciano mai il tuo computer!
Ottieni Desktop
OSSRH to Central Portal (with jreleaser)
Creato
anno scorso
Il diff non scade mai
Eliminare
Esporta
Condividere
Spiegare
13 rimozioni
Linee
Totale
Rimosso
Caratteri
Totale
Rimosso
Per continuare a utilizzare questa funzione, aggiorna a
Diff
checker
Pro
Visualizza prezzi
79 linee
Copia tutti
44 aggiunte
Linee
Totale
Aggiunto
Caratteri
Totale
Aggiunto
Per continuare a utilizzare questa funzione, aggiorna a
Diff
checker
Pro
Visualizza prezzi
111 linee
Copia tutti
plugins {
plugins {
id 'java-library'
id 'java-library'
id 'signing'
id 'signing'
id 'maven-publish'
id 'maven-publish'
Copia
Copiato
Copia
Copiato
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 {
Copia
Copiato
Copia
Copiato
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 {
Copia
Copiato
Copia
Copiato
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()
}
}
}
}
}
}
}
Copia
Copiato
Copia
Copiato
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')
Copia
Copiato
Copia
Copiato
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')
}
}
}
}
}
}
Diff salvati
Testo originale
Apri 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 }
Testo modificato
Apri 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') } } } } }
Trovare la differenza