From 919b80b9ab1207997366277f06ca22339e361279 Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Sat, 11 Mar 2023 11:34:51 +0100 Subject: [PATCH] Gradle shouldn't generate dist zips, zipping jar files is slow and also just ridiculous when you realize jar files are zip files and you can't compress a file twice using the same algo. --- code/crawl/converting-process/build.gradle | 2 ++ code/crawl/crawl-job-extractor-process/build.gradle | 2 ++ code/crawl/crawling-process/build.gradle | 2 ++ code/crawl/loading-process/build.gradle | 2 ++ code/services-core/assistant-service/build.gradle | 2 ++ code/services-core/index-service/build.gradle | 2 ++ code/services-core/search-service/build.gradle | 2 ++ code/services-satellite/api-service/build.gradle | 3 ++- code/services-satellite/dating-service/build.gradle | 2 ++ code/services-satellite/explorer-service/build.gradle | 2 ++ tools/screenshot/build.gradle | 2 ++ 11 files changed, 22 insertions(+), 1 deletion(-) diff --git a/code/crawl/converting-process/build.gradle b/code/crawl/converting-process/build.gradle index 017503ec..7bb5a209 100644 --- a/code/crawl/converting-process/build.gradle +++ b/code/crawl/converting-process/build.gradle @@ -16,6 +16,8 @@ application { applicationName = 'converter-process' } +tasks.distZip.enabled = false + dependencies { implementation project(':third-party') implementation project(':code:common:model') diff --git a/code/crawl/crawl-job-extractor-process/build.gradle b/code/crawl/crawl-job-extractor-process/build.gradle index a4039e24..166430e9 100644 --- a/code/crawl/crawl-job-extractor-process/build.gradle +++ b/code/crawl/crawl-job-extractor-process/build.gradle @@ -16,6 +16,8 @@ application { applicationName = 'crawl-job-extractor-process' } +tasks.distZip.enabled = false + dependencies { implementation project(':code:common:model') implementation project(':code:common:service') diff --git a/code/crawl/crawling-process/build.gradle b/code/crawl/crawling-process/build.gradle index 5adb5bf9..18e841b3 100644 --- a/code/crawl/crawling-process/build.gradle +++ b/code/crawl/crawling-process/build.gradle @@ -16,6 +16,8 @@ application { applicationName = 'crawler-process' } +tasks.distZip.enabled = false + dependencies { implementation project(':third-party') implementation project(':code:common:model') diff --git a/code/crawl/loading-process/build.gradle b/code/crawl/loading-process/build.gradle index ebb42fa7..6771b5d3 100644 --- a/code/crawl/loading-process/build.gradle +++ b/code/crawl/loading-process/build.gradle @@ -15,6 +15,8 @@ application { applicationName = 'loader-process' } +tasks.distZip.enabled = false + dependencies { implementation project(':third-party') implementation project(':code:api:index-api') diff --git a/code/services-core/assistant-service/build.gradle b/code/services-core/assistant-service/build.gradle index e743be90..ad6e0167 100644 --- a/code/services-core/assistant-service/build.gradle +++ b/code/services-core/assistant-service/build.gradle @@ -11,6 +11,8 @@ application { applicationName = 'assistant-service' } +tasks.distZip.enabled = false + apply from: "$rootProject.projectDir/docker-service.gradle" java { diff --git a/code/services-core/index-service/build.gradle b/code/services-core/index-service/build.gradle index f6a62bdf..4218a215 100644 --- a/code/services-core/index-service/build.gradle +++ b/code/services-core/index-service/build.gradle @@ -11,6 +11,8 @@ application { applicationName = 'index-service' } +tasks.distZip.enabled = false + apply from: "$rootProject.projectDir/docker-service.gradle" java { diff --git a/code/services-core/search-service/build.gradle b/code/services-core/search-service/build.gradle index 17a964c3..ef641f92 100644 --- a/code/services-core/search-service/build.gradle +++ b/code/services-core/search-service/build.gradle @@ -11,6 +11,8 @@ application { applicationName = 'search-service' } +tasks.distZip.enabled = false + apply from: "$rootProject.projectDir/docker-service.gradle" java { diff --git a/code/services-satellite/api-service/build.gradle b/code/services-satellite/api-service/build.gradle index ebb78374..acf0dbfc 100644 --- a/code/services-satellite/api-service/build.gradle +++ b/code/services-satellite/api-service/build.gradle @@ -12,12 +12,13 @@ java { } } - application { mainClass = 'nu.marginalia.api.ApiMain' applicationName = 'api-service' } +tasks.distZip.enabled = false + apply from: "$rootProject.projectDir/docker-service.gradle" dependencies { diff --git a/code/services-satellite/dating-service/build.gradle b/code/services-satellite/dating-service/build.gradle index 34b207b6..0e72441b 100644 --- a/code/services-satellite/dating-service/build.gradle +++ b/code/services-satellite/dating-service/build.gradle @@ -11,6 +11,8 @@ application { applicationName = 'dating-service' } +tasks.distZip.enabled = false + apply from: "$rootProject.projectDir/docker-service.gradle" java { diff --git a/code/services-satellite/explorer-service/build.gradle b/code/services-satellite/explorer-service/build.gradle index 93edc7b6..8034a42d 100644 --- a/code/services-satellite/explorer-service/build.gradle +++ b/code/services-satellite/explorer-service/build.gradle @@ -11,6 +11,8 @@ application { applicationName = 'explorer-service' } +tasks.distZip.enabled = false + apply from: "$rootProject.projectDir/docker-service.gradle" java { diff --git a/tools/screenshot/build.gradle b/tools/screenshot/build.gradle index fe0b8345..7826a832 100644 --- a/tools/screenshot/build.gradle +++ b/tools/screenshot/build.gradle @@ -16,6 +16,8 @@ application { applicationName = 'screenshot-capture-tool' } +tasks.distZip.enabled = false + dependencies { implementation project(':third-party') implementation project(':code:common:model')