Skip to content

Commit e84a500

Browse files
committed
CI(Dependency): add Dependency Submission
1 parent 33508a2 commit e84a500

File tree

4 files changed

+32
-14
lines changed

4 files changed

+32
-14
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Dependency Submission
2+
3+
on:
4+
push:
5+
branches: [ 'develop', 'master', 'release_**', 'CI/dependency_check' ]
6+
pull_request:
7+
branches: [ 'develop', "release_**" , 'CI/dependency_check' ]
8+
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
dependency-submission:
16+
runs-on: ubuntu-24.04-arm
17+
18+
steps:
19+
- name: Checkout sources
20+
uses: actions/checkout@v4
21+
- name: Setup Java
22+
uses: actions/setup-java@v4
23+
with:
24+
distribution: 'temurin'
25+
java-version: 17
26+
- name: Setup Gradle
27+
uses: gradle/actions/setup-gradle@v4
28+
- name: Generate and submit dependency graph
29+
uses: gradle/actions/dependency-submission@v4

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@ ext.archInfo = [
4040
VMOptions: isArm64 ? "${rootDir}/gradle/jdk17/java-tron.vmoptions" : "${rootDir}/gradle/java-tron.vmoptions"
4141
]
4242

43-
if (!archInfo.java.is(archInfo.requires.JavaVersion)) {
43+
/*if (!archInfo.java.is(archInfo.requires.JavaVersion)) {
4444
throw new GradleException("Java ${archInfo.requires.JavaVersion} is required for ${archInfo.name}. Detected version ${archInfo.java}")
45-
}
45+
}*/
4646

4747
println "Building for architecture: ${archInfo.name}, Java version: ${archInfo.java}"
4848

4949

5050
subprojects {
51+
apply plugin: "java"
5152
apply plugin: "jacoco"
5253
apply plugin: "maven-publish"
5354

common/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
plugins {
2-
id 'java'
3-
}
4-
51
version '1.0.0'
62

7-
sourceCompatibility = 1.8
8-
93

104
dependencies {
115
api group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.18.3' // https://github.com/FasterXML/jackson-databind/issues/3627

crypto/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
plugins {
2-
id 'java'
3-
}
4-
51
version '1.0.0'
62

7-
sourceCompatibility = 1.8
8-
93
repositories {
104
mavenCentral()
115
}

0 commit comments

Comments
 (0)