diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 4970b05..e790ef1 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,9 +1,8 @@
+name: SonarCloud
on:
push:
branches:
- main
- - branch-*
- - sl-*
pull_request:
types: [opened, synchronize, reopened]
jobs:
@@ -14,11 +13,11 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- - name: Set up JDK 11
+ - name: Set up JDK 17
uses: actions/setup-java@v3
with:
- java-version: 11
- distribution: 'zulu'
+ java-version: 17
+ distribution: 'zulu' # Alternative distribution options are available.
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
diff --git a/pom.xml b/pom.xml
index 330b44a..56cd706 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,6 +12,6 @@
11
11
bogdanakushnir
- https://sonarcloud.io
+ https://squad-3-core.sc-dev.io
diff --git a/src/main/java/org/test/example/Main1.java b/src/main/java/org/test/example/Main1.java
new file mode 100644
index 0000000..21b82c0
--- /dev/null
+++ b/src/main/java/org/test/example/Main1.java
@@ -0,0 +1,20 @@
+package org.test.example;
+
+public class Main1 {
+ public static void main(String[] args) throws Exception{
+ long j =02343533;
+ String s;
+ System.out.println("Hello world!");
+ int i = 0;
+ boolean f;
+
+ if (i==0){
+ f = true;
+ }
+
+ String p;
+// String p1 = getPassword();
+// System.out.println(p1);
+ }
+
+}