Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
#47 trying to fix sunec dep
Browse files Browse the repository at this point in the history
  • Loading branch information
mageddo authored Aug 4, 2019
1 parent c346b5c commit 51873ca
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.7
3.0.8
17 changes: 8 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,23 @@ graal {

dependencies {

annotationProcessor "io.micronaut:micronaut-validation:${micronautVersion}"
annotationProcessor "io.micronaut:micronaut-inject-java:${micronautVersion}"
annotationProcessor('com.mageddo:rsl-compiler:1.0.1')

compile ("org.flywaydb:flyway-core:5.2.4")
compile 'com.zaxxer:HikariCP:3.3.1'
compile ("com.zaxxer:HikariCP:3.3.1")

// compile("org.xerial:sqlite-jdbc:3.27.2")
compile("org.postgresql:postgresql:42.2.5")

compile ("org.springframework:spring-jdbc:5.1.5.RELEASE")
compile ("io.micronaut:micronaut-spring:${micronautVersion}")

annotationProcessor "io.micronaut:micronaut-validation:${micronautVersion}"
compile "io.micronaut:micronaut-validation:${micronautVersion}"
compile "io.micronaut:micronaut-http-client:${micronautVersion}"
compile "io.micronaut:micronaut-http-server-netty:${micronautVersion}"
compile "io.micronaut:micronaut-runtime:${micronautVersion}"

annotationProcessor "io.micronaut:micronaut-inject-java:${micronautVersion}"
compile "io.micronaut:micronaut-inject:${micronautVersion}"
compileOnly "io.micronaut:micronaut-inject-java:${micronautVersion}"

Expand All @@ -69,21 +70,19 @@ dependencies {
compile ("io.micronaut:micronaut-views:${micronautVersion}")
compile ('org.thymeleaf:thymeleaf:3.0.11.RELEASE')

testAnnotationProcessor('com.mageddo:rsl-compiler:1.0.1')
compile('com.mageddo:rsl:1.0.0')
annotationProcessor('com.mageddo:rsl-compiler:1.0.1')
compile("ch.qos.logback:logback-classic:1.2.3")

compile ("com.mageddo:graal-reflection-configuration:2.0.0")
compileOnly("com.oracle.substratevm:svm:${graalVMVersion}")
runtime("io.micronaut:micronaut-graal:${micronautVersion}")
compile("org.graalvm.sdk:graal-sdk:${graalVMVersion}")

runtime "ch.qos.logback:logback-classic:1.2.3"
implementation ("org.aspectj:aspectjrt:1.9.2")

compile("com.atlassian.commonmark:commonmark:0.12.1")

testAnnotationProcessor "io.micronaut:micronaut-inject-java:${micronautVersion}"
testAnnotationProcessor('com.mageddo:rsl-compiler:1.0.1')

testCompile "io.micronaut:micronaut-inject-java:${micronautVersion}"
testCompile("io.micronaut.test:micronaut-test-junit5:1.0.2")

Expand Down
3 changes: 0 additions & 3 deletions graal/micronaut.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@
}, {
"name" : "io.micronaut.http.annotation.Produces",
"allDeclaredConstructors" : true
}, {
"name" : "io.micronaut.http.client.NettyClientHttpRequestFactory",
"allDeclaredConstructors" : true
}, {
"name" : "io.micronaut.http.netty.cookies.NettyCookieFactory",
"allDeclaredConstructors" : true
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
5 changes: 2 additions & 3 deletions src/main/java/com/mageddo/Application.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package com.mageddo;

import com.mageddo.config.ApplicationContextUtils;
import com.mageddo.commons.MigrationUtils;
import com.mageddo.config.ApplicationContextUtils;
import io.micronaut.context.ApplicationContext;
import io.micronaut.runtime.Micronaut;
import org.graalvm.nativeimage.Feature;

public class Application implements Feature {
public class Application {

public static void main(String[] args) {

Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/mageddo/config/ReflectionClasses.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
@AutomaticFeature
class ReflectionClasses implements Feature {

@Override
public void duringSetup(DuringSetupAccess access) {
System.loadLibrary("sunec");
}

@Override
public void beforeAnalysis(BeforeAnalysisAccess access) {
setupClasses();
Expand Down

0 comments on commit 51873ca

Please sign in to comment.