- Fix getter and setter methods for the "isAuthoritative" field.

- Update Gradle.
This commit is contained in:
Lampros Smyrnaios 2023-10-05 16:31:52 +03:00
parent b2ce6393c1
commit ebf8896005
4 changed files with 6 additions and 8 deletions

View File

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
networkTimeout=10000 networkTimeout=10000
validateDistributionUrl=true validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME

View File

@ -26,7 +26,7 @@ if [[ justInstall -eq 1 && shouldRunInDocker -eq 1 ]]; then
justInstall=0 justInstall=0
fi fi
gradleVersion="8.3" gradleVersion="8.4"
if [[ justInstall -eq 0 ]]; then if [[ justInstall -eq 0 ]]; then

View File

@ -75,7 +75,6 @@ public class BulkImport {
public BulkImportSource() { public BulkImportSource() {
} }
public String getDatasourceID() { public String getDatasourceID() {
return datasourceID; return datasourceID;
} }
@ -108,15 +107,14 @@ public class BulkImport {
this.mimeType = mimeType; this.mimeType = mimeType;
} }
public boolean isAuthoritative() { public boolean getIsAuthoritative() {
return isAuthoritative; return isAuthoritative;
} }
public void setAuthoritative(boolean authoritative) { public void setIsAuthoritative(boolean isAuthoritative) {
isAuthoritative = authoritative; this.isAuthoritative = isAuthoritative;
} }
@Override @Override
public String toString() { public String toString() {
return "BulkImportSource{" + return "BulkImportSource{" +

View File

@ -399,7 +399,7 @@ public class BulkImportServiceImpl implements BulkImportService {
DatabaseConnector.databaseLock.unlock(); DatabaseConnector.databaseLock.unlock();
} }
String openAireId = generateOpenaireId(fileNameID, datasourcePrefix, bulkImportSource.isAuthoritative()); String openAireId = generateOpenaireId(fileNameID, datasourcePrefix, bulkImportSource.getIsAuthoritative());
if ( openAireId == null ) if ( openAireId == null )
return null; return null;