Skip to content

Commit 0ebbcd7

Browse files
committed
New gradle task declaration
1 parent b6cef31 commit 0ebbcd7

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ compileTestKotlin {
2020
}
2121

2222
dependencies {
23-
compileOnly 'org.jetbrains:annotations:22.0.0'
23+
compileOnly 'org.jetbrains:annotations:23.0.0'
2424
api project(path: ':jcef-library', configuration: 'shadow')
2525
api project(path: ':ideaIC-library', configuration: 'shadow')
2626
implementation 'org.jetbrains.kotlin:kotlin-stdlib'
27-
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
28-
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
2927
}
3028

3129
repositories {

ideaIC-library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ configurations {
2525
ideaIC
2626
}
2727

28-
task installDependencies(type: Sync) {
28+
tasks.register('installDependencies', Sync) {
2929
dependsOn configurations.ideaIC
3030
from {
3131
configurations.ideaIC.collect { zipTree(it) }

jcef-library/build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,19 @@ def arch = osArch.matches('^(x8664|amd64|ia32e|em64t|x64)$')
3535
? 'arm'
3636
: 'arm64'
3737

38-
task downloadJcef(type: Download) {
38+
tasks.register('prepareBuildDir') {
39+
mkdir buildDir
40+
outputs.dir(buildDir)
41+
}
42+
43+
tasks.register('downloadJcef', Download) {
44+
dependsOn tasks.prepareBuildDir
3945
src "https://github.com/jcefmaven/jcefbuild/releases/download/1.0.18/${os}-${arch}.tar.gz"
4046
dest buildDir
4147
overwrite false
4248
}
4349

44-
task decompressJcef(type: Copy) {
50+
tasks.register('decompressJcef', Copy) {
4551
dependsOn tasks.downloadJcef
4652
from tarTree(resources.gzip(tasks.downloadJcef.outputs.files.singleFile))
4753
into "$buildDir/jcef"

0 commit comments

Comments
 (0)