Diff
checker
文本
文本
圖像
文檔
Excel
文件夾
Legal
Enterprise
桌面版
定價
登入
下載 Diffchecker 桌面版
比較文本
尋找兩個文字檔案之間的差異
工具
歷史
即時編輯器
隱藏空白變更
摺疊未變更行
關閉換行
檢視
拆分
統一
比對精度
智能
單詞
字符
文字樣式
變更外觀
語法突出顯示
選擇語法
忽略
文字轉換
前往第一個差異
編輯輸入
Diffchecker Desktop
執行Diffchecker最安全的方式。取得Diffchecker桌面應用程式:您的差異永遠不會離開您的電腦!
取得桌面版
OSSRH to Central Portal (with jreleaser)
建立於
去年
差異永不過期
清除
匯出
分享
解釋
13 刪除
行
總計
刪除
字符
總計
刪除
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
79 行
全部複製
44 新增
行
總計
新增
字符
總計
新增
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
111 行
全部複製
plugins {
plugins {
id 'java-library'
id 'java-library'
id 'signing'
id 'signing'
id 'maven-publish'
id 'maven-publish'
複製
已複製
複製
已複製
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 {
複製
已複製
複製
已複製
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 {
複製
已複製
複製
已複製
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()
}
}
}
}
}
}
}
複製
已複製
複製
已複製
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')
複製
已複製
複製
已複製
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')
}
}
}
}
}
}
已保存差異
原始文本
開啟檔案
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 }
更改後文本
開啟檔案
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') } } } } }
尋找差異