Skip to content

Commit e95263d

Browse files
authored
Merge pull request #2 from linked-planet/update_for_confluence_9
Update for confluence 9
2 parents 701040d + 87018dd commit e95263d

File tree

7 files changed

+95
-17
lines changed

7 files changed

+95
-17
lines changed

.envrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file is used by direnv to setup the local shell environment, whenever the project is entered.
2+
# Installation: https://direnv.net/#basic-installation
3+
4+
use flake
5+
PATH=$PWD/cmds:$PATH

.github/workflows/maven.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: Set up JDK 21
16+
- name: Set up JDK 17
1717
uses: actions/setup-java@v4
1818
with:
19-
java-version: '21'
19+
java-version: '17'
2020
distribution: 'temurin'
2121
cache: maven
2222
- name: Build with Maven
@@ -31,10 +31,10 @@ jobs:
3131

3232
steps:
3333
- uses: actions/checkout@v4
34-
- name: Set up JDK 21
34+
- name: Set up JDK 17
3535
uses: actions/setup-java@v4
3636
with:
37-
java-version: '21'
37+
java-version: '17'
3838
distribution: 'temurin'
3939
cache: maven
4040
- name: Start Confluence

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/setup-java@v4
1818
with:
1919
'distribution': temurin
20-
java-version: '21'
20+
java-version: '17'
2121

2222
- name: Build with Maven 🔧
2323
run: mvn -B package --file pom.xml

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/src/test/resources/signature-test.ser
22

3+
.direnv/
4+
35
/.settings
46
/.classpath
57
/.project

flake.lock

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
description = "Confluence-Multitenancy Dev-Envirionment";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/release-25.05";
6+
};
7+
8+
outputs = { self, nixpkgs }:
9+
let
10+
javaVersion = 17;
11+
12+
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
13+
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
14+
pkgs = import nixpkgs { inherit system; overlays = [ self.overlays.default ]; };
15+
});
16+
in
17+
{
18+
overlays.default =
19+
final: prev: rec {
20+
jdk = prev."jdk${toString javaVersion}";
21+
maven = prev.maven.override { jdk_headless = jdk; };
22+
kotlin = prev.kotlin.override { jre = jdk; };
23+
};
24+
25+
devShells = forEachSupportedSystem ({ pkgs }: {
26+
default = pkgs.mkShell {
27+
28+
packages = with pkgs; [
29+
just
30+
jdk
31+
kotlin
32+
maven
33+
];
34+
};
35+
});
36+
};
37+
}

pom.xml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<modelVersion>4.0.0</modelVersion>
1111
<groupId>com.baloise.confluence</groupId>
1212
<artifactId>digital-signature</artifactId>
13-
<version>8.0.0</version>
13+
<version>8.0.1</version>
1414

1515
<properties>
1616
<confluence.version>9.2.3</confluence.version>
@@ -20,13 +20,13 @@
2020
<!-- This property ensures consistency between the key in atlassian-plugin.xml and the OSGi bundle's key. -->
2121
<atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
2222
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23-
<maven.compiler.source>1.8</maven.compiler.source>
24-
<maven.compiler.target>1.8</maven.compiler.target>
23+
<maven.compiler.source>17</maven.compiler.source>
24+
<maven.compiler.target>17</maven.compiler.target>
2525
<maven.compiler.version>3.14.0</maven.compiler.version>
2626
<maven.javadoc.skip>true</maven.javadoc.skip>
2727
<allow.google.tracking>false</allow.google.tracking>
2828
<kotlin.version>2.1.20</kotlin.version>
29-
<kotlin.compiler.jvmTarget>21</kotlin.compiler.jvmTarget>
29+
<kotlin.compiler.jvmTarget>17</kotlin.compiler.jvmTarget>
3030
</properties>
3131

3232

@@ -57,7 +57,6 @@
5757
<groupId>com.google.code.gson</groupId>
5858
<artifactId>gson</artifactId>
5959
<version>2.8.9</version>
60-
<scope>provided</scope>
6160
</dependency>
6261

6362
<dependency>
@@ -66,6 +65,7 @@
6665
<version>${confluence.version}</version>
6766
<scope>provided</scope>
6867
</dependency>
68+
6969
<dependency>
7070
<groupId>com.atlassian.mywork</groupId>
7171
<artifactId>mywork-api</artifactId>
@@ -211,6 +211,14 @@
211211
</goals>
212212
</execution>
213213
</executions>
214+
<configuration>
215+
<languageVersion>2.1</languageVersion>
216+
<apiVersion>2.1</apiVersion>
217+
<args>
218+
<arg>-Xwhen-guards</arg>
219+
</args>
220+
</configuration>
221+
214222
</plugin>
215223
<plugin>
216224
<groupId>org.apache.maven.plugins</groupId>
@@ -282,20 +290,19 @@
282290
<productDataVersion>${confluence.data.version}</productDataVersion>
283291
<enableQuickReload>false</enableQuickReload>
284292
<extractDependencies>false</extractDependencies>
293+
<banningExcludes>
294+
<exclude>com.google.code.gson:gson</exclude>
295+
</banningExcludes>
285296
<instructions>
286297
<Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
287298
<!-- Add package to export here -->
288299
<Export-Package>com.baloise.confluence.digitalsignature.api</Export-Package>
289300
<!-- Add package import here -->
290301
<Import-Package>
291-
com.atlassian.plugin.module,
292-
com.atlassian.plugin.osgi.external,
293-
org.eclipse.gemini.blueprint.*,
294-
org.osgi.framework,
295-
org.springframework.*,
296-
*,
302+
org.springframework.osgi.*;resolution:="optional",
303+
org.eclipse.gemini.blueprint.*;resolution:="optional",
304+
*;version="0";resolution:=optional
297305
</Import-Package>
298-
299306
<!-- Ensure plugin is spring powered -->
300307
<Spring-Context>*</Spring-Context>
301308
</instructions>

0 commit comments

Comments
 (0)