diff --git a/.gitignore b/.gitignore index dc954bc68..83b70e1e1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +application-local.yaml build .gradle .gradletasknamecache diff --git a/build.gradle b/build.gradle index c8099b535..dba0f7ad8 100644 --- a/build.gradle +++ b/build.gradle @@ -16,15 +16,18 @@ configurations { } repositories { - mavenLocal() mavenCentral() - /*maven { + maven { + url = uri("https://repo.danubetech.com/repository/maven-public") + } + maven { url 'https://jitpack.io' } + maven { url = uri("https://maven.pkg.github.com/catenax-ng/product-lab-ssi") credentials { - username = 'name' - password = 'token' + username = "${githubUserName}" + password = "${githubToken}" } - }*/ + } } ext { @@ -44,7 +47,6 @@ dependencies { implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${openApiVersion}" implementation 'org.liquibase:liquibase-core' implementation 'org.eclipse.tractusx.ssi.lib:cx-ssi-lib:0.0.4' - implementation 'org.eclipse.tractusx.ssi:cx-ssi-agent-lib:0.0.3' runtimeOnly 'org.postgresql:postgresql' compileOnly 'org.projectlombok:lombok' developmentOnly 'org.springframework.boot:spring-boot-devtools' diff --git a/gradle.properties b/gradle.properties index 941da0ed3..bf847a0a1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,4 +5,6 @@ springBootVersion=3.0.6 springDependencyVersion=1.1.0 groupName=org.eclipse.tractusx applicationVersion=0.0.1-SNAPSHOT -openApiVersion=2.1.0 \ No newline at end of file +openApiVersion=2.1.0 +githubUserName= +githubToken= \ No newline at end of file diff --git a/src/main/java/org/eclipse/tractusx/managedidentitywallets/utils/Test.java b/src/main/java/org/eclipse/tractusx/managedidentitywallets/utils/Test.java deleted file mode 100644 index 5c84ae717..000000000 --- a/src/main/java/org/eclipse/tractusx/managedidentitywallets/utils/Test.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * ******************************************************************************* - * Copyright (c) 2021,2023 Contributors to the Eclipse Foundation - * - * See the NOTICE file(s) distributed with this work for additional - * information regarding copyright ownership. - * - * This program and the accompanying materials are made available under the - * terms of the Apache License, Version 2.0 which is available at - * https://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ****************************************************************************** - */ - -package org.eclipse.tractusx.managedidentitywallets.utils; - -import org.eclipse.tractusx.ssi.lib.did.web.DidWebFactory; -import org.eclipse.tractusx.ssi.lib.model.did.Did; - -import java.net.URLDecoder; -import java.nio.charset.Charset; - -public class Test { - - public static void main(String[] args) { - - Did did = DidWebFactory.fromHostname("localhost:1123" ); - - - System.out.println(URLDecoder.decode(did.toUri().toString(), Charset.defaultCharset())); - - } -} diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index d266b98b9..0e1f0c38b 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -62,6 +62,8 @@ management: miw: host: ${HOST_NAME:localhost} encryptionKey: ${ENCRYPTION_KEY:Woh9waid4Ei5eez0aitieghoow9so4oe} + authorityWalletBpn: ${AUTHORITY_WALLET_BPN:BPNL000000000000} + authorityWalletName: ${AUTHORITY_WALLET_NAME:Catena-X} security: enabled: true realm: ${KEYCLOAK_REALM:miw} diff --git a/src/test/java/org/eclipse/tractusx/managedidentitywallets/ValidateTest.java b/src/test/java/org/eclipse/tractusx/managedidentitywallets/ValidateTest.java index e37992cca..18321cb62 100644 --- a/src/test/java/org/eclipse/tractusx/managedidentitywallets/ValidateTest.java +++ b/src/test/java/org/eclipse/tractusx/managedidentitywallets/ValidateTest.java @@ -40,7 +40,6 @@ void validateTest() { Assertions.assertThrows(RuntimeException.class, () -> Validate.value("").isNotEmpty().launch(new RuntimeException())); - Assertions.assertDoesNotThrow(() -> Validate.isFalse(true).launch(new RuntimeException())); Assertions.assertDoesNotThrow(() -> Validate.isTrue(false).launch(new RuntimeException()));