cschabl / activejdbc-gradle-plugin Goto Github PK
View Code? Open in Web Editor NEWGradle plugin for instrumenting ActiveJDBC model classes.
License: Apache License 2.0
Gradle plugin for instrumenting ActiveJDBC model classes.
License: Apache License 2.0
The new version of JavaLite 30 for Java 16 is being released. It has been already published to the Sonatype repos, and will appear there soon.
@cschabl see if the plugin needs an update - this is an FYI. The release is still in progress, with release notes to follow.
Hello! I've made sure to check for other issues here before reporting this.
It appears that the compile
configuration as present in the build.gradle of this project, and not implementation
, is preventing compatibility with Gradle 7.1.
I believe it is a simple replacement, as Gradle's site documents here: https://docs.gradle.org/current/userguide/upgrading_version_6.html and here: https://i.imgur.com/Q0ucPVs.png however I am not very experienced in writing Gradle plugins at all. If you could take a look I would really appreciate it!
Hi,
we get the following issue when running our gradle builds:
java.lang.UnsupportedClassVersionError: de/schablinski/gradle/activejdbc/ActiveJDBCGradlePlugin has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
We run our gradle builds with the settings (backwards compatibility for legacy platforms):
sourceCompatibility = 1.8
targetCompatibility = 1.8
and since version 2.0.2 our gradle builds do not run anymore. We switched back to version 2.0.1 for now, but is there something else we can do to use the latest version?
Kind regards,
Arjo Poldervaart
If the plugin is declared in the build script in the block plugins
, plugin initialization fails although the java plugin is declared before. Example:
plugins {
id "java"
id "de.schablinski.activejdbc-gradle-plugin" version "1.0-beta-1"
}
The plugin must be declared the "legacy way":
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath group: 'de.schablinski.gradle.activejdbc', name: 'activejdbc-gradle-plugin', version: '1.0-beta-1'
}
}
apply plugin: 'java'
apply plugin: 'de.schablinski.activejdbc-gradle-plugin'
ActiveJDBC 2.3 introduced an option to create static model meta data with its Maven plugin (see javalite/javalite#479).
The Gradle plugin should support this, too.
When the instrumentation tool is executed by the plugin, the logging library SLF4J used by the instrumentation tool logs the following:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
It will be so much easier to upgrade them to a new release!
Also, create a a new page on the site and list all examples.
Finally, it is out: https://search.maven.org/artifact/org.javalite/activejdbc/2.3/jar
The instrumentor code looks for java and scala class files (classes/java/main and classes/scala/main) but not for classes in (classes/groovy/main). This is a shame because a) some people still use groovy for UI/DB development, and b) the plugin itself is written in groovy! Will try to create a PR myself for this, but might take a week.
Is Java 17 supported? Builds fine with 16 but with 17 I'm getting the following error on build:
groovy.lang.MissingPropertyException: Could not get unknown property 'out' for task ':sls:sls-server:instrumentModels' of type de.schablinski.gradle.activejdbc.ActiveJDBCInstrumentation.
at org.gradle.internal.metaobject.AbstractDynamicObject.getMissingProperty(AbstractDynamicObject.java:85)
at org.gradle.internal.metaobject.AbstractDynamicObject.getProperty(AbstractDynamicObject.java:62)
at de.schablinski.gradle.activejdbc.ActiveJDBCInstrumentation_Decorated.getProperty(Unknown Source)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getGroovyObjectProperty(ScriptBytecodeAdapter.java:520)
at de.schablinski.gradle.activejdbc.ActiveJDBCInstrumentation.this$dist$get$3(ActiveJDBCInstrumentation.groovy)
at de.schablinski.gradle.activejdbc.ActiveJDBCInstrumentation$StdOutCaptor.propertyMissing(ActiveJDBCInstrumentation.groovy)
at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at [email protected]/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at [email protected]/java.lang.reflect.Method.invoke(Method.java:568)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)
at groovy.lang.MetaClassImpl.invokeMissingProperty(MetaClassImpl.java:879)
at groovy.lang.MetaClassImpl$10.getProperty(MetaClassImpl.java:2120)
at org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.getProperty(GetEffectivePogoPropertySite.java:85)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:341)
at de.schablinski.gradle.activejdbc.ActiveJDBCInstrumentation$StdOutCaptor.close(ActiveJDBCInstrumentation.groovy:144)
at org.gradle.internal.concurrent.CompositeStoppable$2.stop(CompositeStoppable.java:90)
at org.gradle.internal.concurrent.CompositeStoppable.stop(CompositeStoppable.java:106)
at org.gradle.process.internal.streams.ExecOutputHandleRunner.forwardContent(ExecOutputHandleRunner.java:70)
at org.gradle.process.internal.streams.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:53)
at org.gradle.internal.operations.CurrentBuildOperationPreservingRunnable.run(CurrentBuildOperationPreservingRunnable.java:42)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at [email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at [email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at [email protected]/java.lang.Thread.run(Thread.java:833)
sources: https://github.com/javalite/javalite-site
Should be linked off of this page: http://javalite.io/documentation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.