Skip to content

Commit

Permalink
patch jaffi with a version declaring a lower jni version
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobsonchase committed Aug 15, 2024
1 parent 4c4782f commit 8470f48
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 24 deletions.
18 changes: 10 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@
fenix-flake.overlays.default
];
};
rust-toolchain = pkgs.fenix.complete.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
"rust-analyzer"
rust-toolchain = pkgs.fenix.combine [
(pkgs.fenix.complete.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
"rust-analyzer"
])
];
java-toolchain = with pkgs; [
openjdk17_headless
Expand Down Expand Up @@ -110,7 +112,7 @@
CHALK_SOLVER_MAX_SIZE = 1500;
OPENSSL_LIB_DIR = "${pkgs.openssl.out}/lib";
OPENSSL_INCLUDE_DIR = "${pkgs.openssl.dev}/include";
RUSTC_WRAPPER="${pkgs.sccache}/bin/sccache";
RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
JAVA_11_HOME = "${pkgs.openjdk11_headless}";
JAVA_17_HOME = "${pkgs.openjdk17_headless}";
buildInputs = with pkgs; [
Expand Down
6 changes: 3 additions & 3 deletions ngrok-java-17/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.ngrok</groupId>
<artifactId>ngrok-project</artifactId>
<version>1.1.0</version>
<version>1.1.1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down Expand Up @@ -46,7 +46,7 @@
<dependency>
<groupId>com.ngrok</groupId>
<artifactId>ngrok-java</artifactId>
<version>1.1.0</version>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand All @@ -55,4 +55,4 @@
<scope>test</scope>
</dependency>
</dependencies>
</project>
</project>
2 changes: 1 addition & 1 deletion ngrok-java-native/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ngrok-java-native/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ url = "2.4.1"
crate_type = ["cdylib"]

[patch.crates-io]
jaffi_support = { git = 'https://github.com/ngrok-oss/jaffi.git', branch = 'nikolay/add-bool-support' }
jaffi_support = { git = 'https://github.com/ngrok-oss/jaffi.git', branch = 'josh/lower-jni-version' }
6 changes: 3 additions & 3 deletions ngrok-java-native/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.ngrok</groupId>
<artifactId>ngrok-project</artifactId>
<version>1.1.0</version>
<version>1.1.1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand All @@ -15,7 +15,7 @@
<dependency>
<groupId>com.ngrok</groupId>
<artifactId>ngrok-java</artifactId>
<version>1.1.0</version>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down Expand Up @@ -296,4 +296,4 @@
</build>
</profile>
</profiles>
</project>
</project>
2 changes: 1 addition & 1 deletion ngrok-java-native/src/main/java/com/ngrok/Runtime.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ public void log(String level, String target, String message) {
logger.atLevel(lvl).log(format, target, message);
}
}
}
}
4 changes: 2 additions & 2 deletions ngrok-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.ngrok</groupId>
<artifactId>ngrok-project</artifactId>
<version>1.1.0</version>
<version>1.1.1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down Expand Up @@ -50,4 +50,4 @@
<scope>test</scope>
</dependency>
</dependencies>
</project>
</project>
6 changes: 3 additions & 3 deletions ngrok-jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.ngrok</groupId>
<artifactId>ngrok-project</artifactId>
<version>1.1.0</version>
<version>1.1.1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down Expand Up @@ -46,7 +46,7 @@
<dependency>
<groupId>com.ngrok</groupId>
<artifactId>ngrok-java</artifactId>
<version>1.1.0</version>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
Expand All @@ -55,4 +55,4 @@
<scope>compile</scope>
</dependency>
</dependencies>
</project>
</project>
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.ngrok</groupId>
<artifactId>ngrok-project</artifactId>
<version>1.1.0</version>
<version>1.1.1</version>
<packaging>pom</packaging>

<name>ngrok :: Project</name>
Expand All @@ -26,7 +26,7 @@
<url>https://github.com/ngrok/ngrok-java</url>
<connection>scm:git:${project.scm.url}</connection>
<developerConnection>scm:git:${project.scm.url}</developerConnection>
<tag>v1.1.0</tag>
<tag>v1.1.1</tag>
</scm>

<modules>
Expand Down

0 comments on commit 8470f48

Please sign in to comment.