mirror of
https://github.com/Athou/commafeed.git
synced 2026-11-03 10:54:46 +00:00
fix build
This commit is contained in:
@@ -322,6 +322,11 @@
|
|||||||
<artifactId>quarkus-extension-processor</artifactId>
|
<artifactId>quarkus-extension-processor</artifactId>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.graalvm.sdk</groupId>
|
||||||
|
<artifactId>nativeimage</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- quarkus dependencies -->
|
<!-- quarkus dependencies -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ import com.codahale.metrics.Histogram;
|
|||||||
import com.codahale.metrics.Meter;
|
import com.codahale.metrics.Meter;
|
||||||
import com.codahale.metrics.MetricRegistry;
|
import com.codahale.metrics.MetricRegistry;
|
||||||
import com.codahale.metrics.Timer;
|
import com.codahale.metrics.Timer;
|
||||||
|
import com.oracle.svm.core.annotate.Substitute;
|
||||||
|
import com.oracle.svm.core.annotate.TargetClass;
|
||||||
|
|
||||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||||
|
|
||||||
@@ -346,4 +348,22 @@ import io.quarkus.runtime.annotations.RegisterForReflection;
|
|||||||
com.rometools.opml.feed.synd.impl.ConverterForOPML10.class,
|
com.rometools.opml.feed.synd.impl.ConverterForOPML10.class,
|
||||||
com.rometools.opml.feed.synd.impl.ConverterForOPML20.class,
|
com.rometools.opml.feed.synd.impl.ConverterForOPML20.class,
|
||||||
})
|
})
|
||||||
public class NativeImageClasses {}
|
public class NativeImageClasses {
|
||||||
|
|
||||||
|
// disable zstd and brotli runtime detection because it causes native image failure
|
||||||
|
@TargetClass(className = "org.apache.hc.client5.http.impl.ZstdRuntime")
|
||||||
|
static final class ZstdRuntime {
|
||||||
|
@Substitute
|
||||||
|
public static boolean available() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@TargetClass(className = "org.apache.hc.client5.http.impl.Brotli4jRuntime")
|
||||||
|
static final class Brotli4jRuntime {
|
||||||
|
@Substitute
|
||||||
|
public static boolean available() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user