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() {