Skip to content

Commit

Permalink
chore: add root modules task
Browse files Browse the repository at this point in the history
- Convenient task to produce all the modules

Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr committed Jan 16, 2025
1 parent 7566276 commit c396ff6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,17 @@ jar {
}
// Don't include extra stuff like version number in JAR name
archiveFileName.set("${archiveBaseName.get()}.${archiveExtension.get()}")
dependsOn subprojects.collect {it.tasks.withType(Jar)}
}

def omegatJarFilename = jar.archiveFileName.get()
project(":machinetranslators") {jar.enabled = false}
project(":spellchecker") {jar.enabled = false}
project(":language-modules") {jar.enabled = false}
def modulesTask = tasks.register('modules') {
dependsOn subprojects.collect {it.tasks.withType(Jar)}
group = 'build'
}
assemble.dependsOn modulesTask

distributions {
main {
Expand Down

0 comments on commit c396ff6

Please sign in to comment.