From 8e7901afdda332f0f3d766ba0984e24c3e79af9c Mon Sep 17 00:00:00 2001 From: "michele.artini" Date: Fri, 9 Sep 2022 14:06:31 +0200 Subject: [PATCH] AGPL 3 licence --- .../main/java/eu/dnetlib/common/app/AbstractDnetApp.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libs/dnet-apps-common/src/main/java/eu/dnetlib/common/app/AbstractDnetApp.java b/libs/dnet-apps-common/src/main/java/eu/dnetlib/common/app/AbstractDnetApp.java index 3ac65d41..5e7b8c98 100644 --- a/libs/dnet-apps-common/src/main/java/eu/dnetlib/common/app/AbstractDnetApp.java +++ b/libs/dnet-apps-common/src/main/java/eu/dnetlib/common/app/AbstractDnetApp.java @@ -32,7 +32,10 @@ public abstract class AbstractDnetApp { private static final String DEFAULT_DESC = "APIs documentation"; - private static final License APACHE_2_LICENSE = new License().name("Apache 2.0").url("http://www.apache.org/licenses/LICENSE-2.0"); + protected static final License APACHE_2_LICENSE = new License().name("Apache 2.0").url("http://www.apache.org/licenses/LICENSE-2.0"); + + protected static final License AGPL_3_LICENSE = + new License().name("GNU Affero General Public License v3.0 or later").url("https://www.gnu.org/licenses/agpl-3.0.txt"); @Value("${maven.pom.path}") private ClassPathResource pom; @@ -98,7 +101,7 @@ public abstract class AbstractDnetApp { } protected License swaggerLicense() { - return APACHE_2_LICENSE; + return AGPL_3_LICENSE; } protected List swaggerTags() {