mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[IJPL-1050] generate a notice file in the repackaged jackson-core distribution
GitOrigin-RevId: 369b5f8c311a30d948108e7955c23161d2d032d8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
93eaa9554c
commit
57727efbbe
@@ -68,22 +68,42 @@ FileTree resolveLibraryFiles(String group, String artifact, String version, Stri
|
||||
})
|
||||
}
|
||||
|
||||
static void appendNoticeFile(File root) {
|
||||
def noticeFile = new File(root, "META-INF/JB-NOTICE")
|
||||
noticeFile.createNewFile()
|
||||
noticeFile.withWriter { writer ->
|
||||
writer << "Modifications to the original distribution:\n"
|
||||
writer << "The library files are untouched and left as is.\n"
|
||||
writer << "The only change is that the files for JEP 238: Multi-Release JAR Support have been removed from the distribution."
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------- TASKS ----------------------------------------- //
|
||||
|
||||
tasks.register('disassembleJar', Copy) {
|
||||
group "build"
|
||||
|
||||
def target = new File(repackagerDirTarget, "bin")
|
||||
from resolveLibraryFiles(libraryGroup, libraryArtifactId, libraryVersion, null)
|
||||
exclude 'META-INF/versions/**'
|
||||
into new File(repackagerDirTarget, "bin")
|
||||
into target
|
||||
|
||||
doLast {
|
||||
appendNoticeFile(target)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register('disassembleSourcesJar', Copy) {
|
||||
group "build"
|
||||
|
||||
def target = new File(repackagerDirTarget, "sources")
|
||||
from resolveLibraryFiles(libraryGroup, libraryArtifactId, libraryVersion, "sources")
|
||||
exclude 'META-INF/versions/**'
|
||||
into new File(repackagerDirTarget, "sources")
|
||||
into target
|
||||
|
||||
doLast {
|
||||
appendNoticeFile(target)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register('buildJar', Zip) {
|
||||
|
||||
Reference in New Issue
Block a user