dylan
12/01/2017, 11:28 AMBuild cache type 'com.drost.buildcache.minio.MinioPlugin' has not been registered.
I have the gradle-plugins file in meta inf with implementation-class=com.drost.buildcache.minio.MinioPlugin
which I set with the java-gradle-plugin
bamboo
12/01/2017, 11:56 AMgradle-plugin
sample? https://github.com/gradle/kotlin-dsl/tree/develop/samples/gradle-plugindylan
12/01/2017, 1:20 PMdylan
12/01/2017, 1:20 PMbamboo
12/01/2017, 1:36 PMWhen … I … use it in another project to test itThat would be the consumer, right?
bamboo
12/01/2017, 1:37 PMbuildCache.registerBuildCacheService(MinioBuildCache::class.java, MinioBuildCacheServiceFactory::class.java
bamboo
12/01/2017, 1:38 PMsettings.gradle
time)dylan
12/01/2017, 2:47 PMbuildscript {
dependencies {
classpath files('libs/minio-buildcache-1.0-SNAPSHOT.jar')
}
}
apply plugin: 'com.drost.minio-buildcache'
dylan
12/01/2017, 2:47 PMsettings.gradle
bamboo
12/01/2017, 4:15 PMio.minio:minio:3.0.10
bamboo
12/01/2017, 4:16 PMbamboo
12/01/2017, 4:16 PMbamboo
12/01/2017, 4:16 PMbuildscript
in the consuming projectbamboo
12/01/2017, 4:16 PMjcenter()
bamboo
12/01/2017, 4:17 PM--debug
dylan
12/01/2017, 6:10 PMbamboo
12/01/2017, 6:34 PMdylan
12/02/2017, 2:54 PM* Where:
Settings file '/Users/dylan/projects/buildcachetest/settings.gradle' line: 20
* What went wrong:
A problem occurred evaluating settings 'buildcachetest'.
> Could not generate a proxy class for class com.drost.gradle.buildcache.minio.MinioBuildCache.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at <https://help.gradle.org>
settings.gradle
buildscript {
repositories {
mavenLocal()
jcenter()
}
dependencies {
classpath 'com.drost.gradle:minio-buildcache:1.0-SNAPSHOT'
}
}
apply plugin: 'com.drost.gradle.minio-buildcache'
ext.isCiServer = System.getenv().containsKey("CI")
buildCache {
local {
enabled = !isCiServer
}
remote(com.drost.gradle.buildcache.minio.MinioBuildCache) {
endpoint='****'
accessKey='****'
secretKey='****'
bucket='test-gradle'
}
}
rootProject.name = 'buildcachetest'
dylan
12/02/2017, 2:59 PMcom.drost.gradle.buildcache.minio.MinioBuildCache
need to be marked as an open class so gradle can extend the classbamboo
12/02/2017, 9:09 PM