Compare commits

...

4 Commits

Author SHA1 Message Date
Fabio Sinibaldi f60c3b649c Release 2023-03-28 12:33:05 +02:00
Fabio Sinibaldi 306c6723b8 Removed exception for missing configurations 2023-03-28 12:32:15 +02:00
Fabio Sinibaldi 5b969ac2cb Added log 2023-03-28 12:31:54 +02:00
Fabio Sinibaldi 70d7802cbe Updated bom 2023-03-28 12:31:36 +02:00
3 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@
</parent>
<groupId>org.gcube.data.publishing</groupId>
<artifactId>ckan2zenodo-library</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.3</version>
<name>CKAN 2 Zenodo Library</name>
<description>Library to publish d4science CKAN items into Zenodo</description>
@ -31,7 +31,7 @@
<dependency>
<groupId>org.gcube.distribution</groupId>
<artifactId>gcube-bom</artifactId>
<version>2.0.1</version>
<version>2.1.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>

View File

@ -35,8 +35,7 @@ public class TransformerManager {
else return new Translator(m);
}
}
throw new ConfigurationException("No specific mapping for the catalogue item has been configured. "
+ "By continuing with the upload some metadata might not be upload to Zenodo.");
return new Translator();
}

View File

@ -129,8 +129,9 @@ public class Zenodo {
}
public FileDeposition uploadFile(ZenodoDeposition deposition, String toUploadName,File toUpload) throws ZenodoException {
final ZenodoDeposition dep=(deposition.getSubmitted())?newVersion(deposition.getId()):deposition;
log.info("Pushing File {} to Deposition {}",toUploadName,dep);
Callable<Response> call=new Callable<Response>() {
@Override