Commit d662f96e authored by Rustam Lotsmanenko (EPAM)'s avatar Rustam Lotsmanenko (EPAM)
Browse files

fix compile

parent c8c7ac91
Pipeline #106889 passed with stages
in 30 minutes and 24 seconds
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<dependency> <dependency>
<groupId>org.opengroup.osdu</groupId> <groupId>org.opengroup.osdu</groupId>
<artifactId>core-lib-gcp</artifactId> <artifactId>core-lib-gcp</artifactId>
<version>0.15.0-SNAPSHOT</version> <version>0.15.0-rc3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
package org.opengroup.osdu.dataset.provider.gcp; package org.opengroup.osdu.dataset.provider.gcp;
import org.opengroup.osdu.core.gcp.multitenancy.IStorageFactory;
import org.opengroup.osdu.dataset.DatasetApplication; import org.opengroup.osdu.dataset.DatasetApplication;
import org.opengroup.osdu.dataset.di.DmsClientFactory; import org.opengroup.osdu.dataset.di.DmsClientFactory;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
...@@ -30,7 +29,7 @@ import org.springframework.context.annotation.FilterType; ...@@ -30,7 +29,7 @@ import org.springframework.context.annotation.FilterType;
@ConfigurationPropertiesScan(basePackages = "org.opengroup") @ConfigurationPropertiesScan(basePackages = "org.opengroup")
@ComponentScan(value = {"org.opengroup.osdu"}, excludeFilters = { @ComponentScan(value = {"org.opengroup.osdu"}, excludeFilters = {
@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = {DmsClientFactory.class, @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = {DmsClientFactory.class,
DatasetApplication.class, IStorageFactory.class})}) DatasetApplication.class})})
public class DatasetApplicationGCP { public class DatasetApplicationGCP {
public static void main(String[] args) { public static void main(String[] args) {
......
/*
* Copyright 2021 Google LLC
* Copyright 2021 EPAM Systems, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License 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.
*/
package org.opengroup.osdu.dataset.provider.gcp.config;
import com.google.cloud.storage.Storage;
import com.google.cloud.storage.StorageOptions;
import org.opengroup.osdu.core.gcp.multitenancy.GcsMultiTenantAccess;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConditionalOnProperty(name = "obmDriver", havingValue = "gcs")
public class GcpGoogleCloudStorageConfig {
@Bean
public Storage googleCloudStorage() {
return StorageOptions.getDefaultInstance().getService();
}
@Bean
public GcsMultiTenantAccess gcsMultiTenantAccess() {
return new GcsMultiTenantAccess();
}
}
/*
* Copyright 2021 Google LLC
* Copyright 2021 EPAM Systems, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License 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.
*/
package org.opengroup.osdu.dataset.provider.gcp.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.net.URL;
import java.time.Instant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FileInstructionsItem {
@JsonProperty("unsignedUrl")
private String unsignedUrl;
@JsonProperty("signedUrl")
private URL signedUrl;
@JsonProperty("createdAt")
private Instant createdAt;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment