Slackbot
02/25/2022, 5:28 PMdaniel
02/25/2022, 6:14 PMcompileOnly
as a declarable bucket (canBeConsumed == false && canBeResolved == false
) but it found an existing configuration with the same name as resolvable bucket. It seems there is something else configuring the project.Peter Ehikhuemen
02/25/2022, 7:51 PMPeter Ehikhuemen
02/25/2022, 7:58 PMlibrary {
targetMachines.set(listOf(machines.linux.x86_64,
machines.windows.x86, machines.windows.x86_64,
machines.macOS.x86_64))
}
daniel
02/25/2022, 8:06 PMcom.gradle.enterprise
or not using --scan
it work fine?Peter Ehikhuemen
02/25/2022, 8:06 PMPeter Ehikhuemen
02/25/2022, 8:06 PMPeter Ehikhuemen
02/25/2022, 8:07 PMPeter Ehikhuemen
02/25/2022, 8:07 PMdaniel
02/25/2022, 8:07 PMPeter Ehikhuemen
02/25/2022, 8:07 PMPeter Ehikhuemen
02/25/2022, 8:08 PMPeter Ehikhuemen
02/25/2022, 8:08 PMimplementation
configuratonPeter Ehikhuemen
02/25/2022, 8:08 PMdaniel
02/25/2022, 8:08 PMPeter Ehikhuemen
02/25/2022, 8:09 PMdaniel
02/25/2022, 8:09 PMPeter Ehikhuemen
02/25/2022, 8:09 PMPeter Ehikhuemen
02/25/2022, 8:09 PMPeter Ehikhuemen
02/25/2022, 8:10 PMdaniel
02/25/2022, 8:10 PMdaniel
02/25/2022, 8:11 PMPeter Ehikhuemen
02/25/2022, 8:12 PMPeter Ehikhuemen
02/25/2022, 8:13 PMdaniel
02/25/2022, 8:13 PMPeter Ehikhuemen
02/25/2022, 8:13 PMPeter Ehikhuemen
02/25/2022, 8:14 PMdaniel
02/25/2022, 8:14 PMdaniel
02/25/2022, 8:15 PMPeter Ehikhuemen
02/25/2022, 8:15 PMlibary {
targetMachines.set(listOf(machines.linux.x86_64, machines.macOS.x86_64))
}
Peter Ehikhuemen
02/25/2022, 8:15 PMPeter Ehikhuemen
02/25/2022, 8:16 PMplugins {
id("dev.nokee.c-library")
id("dev.nokee.xcode-ide")
}
libary {
targetMachines.set(listOf(machines.linux.x86_64, machines.macOS.x86_64))
}
Peter Ehikhuemen
02/25/2022, 8:16 PMdaniel
02/25/2022, 8:19 PMPeter Ehikhuemen
02/25/2022, 8:19 PMdaniel
02/25/2022, 8:19 PMPeter Ehikhuemen
02/25/2022, 8:19 PMdaniel
02/25/2022, 9:24 PMdaniel
02/25/2022, 9:24 PMdaniel
02/25/2022, 9:26 PM~/.gradle/init.d
scripts that would automatically apply any plugins which may be incompatible with Nokee. A quick way to check is to use different home directory. With the sample, you can try ./gradlew build -g user-home
This will effectively ignore any configuration or cache under ~/.gradle
daniel
02/25/2022, 9:27 PM./gradlew --version
daniel
02/25/2022, 9:27 PM------------------------------------------------------------
Gradle 6.2.1
------------------------------------------------------------
Build time: 2020-02-24 20:24:10 UTC
Revision: aacbcb7e587faa6a8e7851751a76183b6187b164
Kotlin: 1.3.61
Groovy: 2.5.8
Ant: Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM: 1.8.0_292 (AdoptOpenJDK 25.292-b10)
OS: Mac OS X 10.16 x86_64
daniel
02/25/2022, 9:29 PM------------------------------------------------------------
Gradle 7.4
------------------------------------------------------------
Build time: 2022-02-08 09:58:38 UTC
Revision: f0d9291c04b90b59445041eaa75b2ee744162586
Kotlin: 1.5.31
Groovy: 3.0.9
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 1.8.0_292 (AdoptOpenJDK 25.292-b10)
OS: Mac OS X 10.16 x86_64
Peter Ehikhuemen
02/27/2022, 8:22 PM* What went wrong:
Script compilation errors:
Line 5: libary {
^ Unresolved reference: libary
Line 6: targetMachines.set(listOf(machines.linux.x86_64, machines.macOS.x86_64))
^ Unresolved reference: targetMachines
Line 6: targetMachines.set(listOf(machines.linux.x86_64, machines.macOS.x86_64))
^ Unresolved reference: machines
Line 6: targetMachines.set(listOf(machines.linux.x86_64, machines.macOS.x86_64))
^ Unresolved reference: machines
Peter Ehikhuemen
02/27/2022, 8:23 PMplugins {
id("dev.nokee.c-library")
}
libary {
targetMachines.set(listOf(machines.linux.x86_64, machines.macOS.x86_64))
}
this is my build.gradle.kts filePeter Ehikhuemen
02/27/2022, 8:23 PMpluginManagement {
repositories {
gradlePluginPortal()
maven { url = uri("<https://repo.nokee.dev/release>") }
maven { url = uri("<https://repo.nokee.dev/snapshot>") }
}
val nokeeVersion = "0.5.0-930919a0"
resolutionStrategy {
eachPlugin {
if (requested.id.id.startsWith("dev.nokee.")) {
useModule("${requested.id.id}:${requested.id.id}.gradle.plugin:${nokeeVersion}")
}
}
}
}
Peter Ehikhuemen
02/27/2022, 8:24 PMdaniel
02/27/2022, 11:17 PMlibary
instead of library
. The current error is most likely that typo. IntelliJ should auto-complete or at least underline the extension block as error, assuming the project was synced with IntelliJ. In cases, like this, commenting the configuration (the extension block) and leaving just the plugin apply can help move pass the syntax error and allow IntelliJ to finish the sync. Not convenient when there is a lot of configuration or on a new project.Peter Ehikhuemen
02/28/2022, 3:14 PMPeter Ehikhuemen
02/28/2022, 3:21 PMdaniel
02/28/2022, 3:24 PM