diff --git a/LICENSE-HEADER.txt b/LICENSE-HEADER.txt new file mode 100644 index 00000000..84ef3743 --- /dev/null +++ b/LICENSE-HEADER.txt @@ -0,0 +1,17 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 108a73de..b7311adc 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,6 +2,7 @@ import java.io.FileOutputStream import java.net.URL plugins { + id("com.diffplug.spotless") apply false id("io.gitlab.arturbosch.detekt") id("com.avast.gradle.docker-compose") id("org.jetbrains.kotlin.jvm") apply false @@ -21,6 +22,13 @@ subprojects { mavenCentral() maven(url = "https://jitpack.io") } + + apply(plugin = "com.diffplug.spotless") + configure { + kotlin { + licenseHeaderFile(file("../LICENSE-HEADER.txt")) + } + } } tasks { diff --git a/control/src/main/kotlin/spp/probe/ClassLoader.kt b/control/src/main/kotlin/spp/probe/ClassLoader.kt index 8a573edf..6923b45c 100644 --- a/control/src/main/kotlin/spp/probe/ClassLoader.kt +++ b/control/src/main/kotlin/spp/probe/ClassLoader.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe import java.io.IOException diff --git a/control/src/main/kotlin/spp/probe/ProbeConfiguration.kt b/control/src/main/kotlin/spp/probe/ProbeConfiguration.kt index 0f1d4cd2..f2d04372 100644 --- a/control/src/main/kotlin/spp/probe/ProbeConfiguration.kt +++ b/control/src/main/kotlin/spp/probe/ProbeConfiguration.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe import com.fasterxml.jackson.databind.ObjectMapper diff --git a/control/src/main/kotlin/spp/probe/SourceProbe.kt b/control/src/main/kotlin/spp/probe/SourceProbe.kt index ab8fb7a3..7055c4a3 100644 --- a/control/src/main/kotlin/spp/probe/SourceProbe.kt +++ b/control/src/main/kotlin/spp/probe/SourceProbe.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe import io.netty.util.internal.logging.InternalLogger diff --git a/control/src/main/kotlin/spp/probe/SourceProbePluginDefine.kt b/control/src/main/kotlin/spp/probe/SourceProbePluginDefine.kt index 7812d2e4..b61069d8 100644 --- a/control/src/main/kotlin/spp/probe/SourceProbePluginDefine.kt +++ b/control/src/main/kotlin/spp/probe/SourceProbePluginDefine.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe import org.apache.skywalking.apm.agent.core.plugin.interceptor.ConstructorInterceptPoint diff --git a/control/src/main/kotlin/spp/probe/control/LiveInstrumentRemote.kt b/control/src/main/kotlin/spp/probe/control/LiveInstrumentRemote.kt index 54d0d319..3da8eb0f 100644 --- a/control/src/main/kotlin/spp/probe/control/LiveInstrumentRemote.kt +++ b/control/src/main/kotlin/spp/probe/control/LiveInstrumentRemote.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.control import io.vertx.core.AbstractVerticle diff --git a/control/src/main/kotlin/spp/probe/util/NopInternalLogger.kt b/control/src/main/kotlin/spp/probe/util/NopInternalLogger.kt index bc1831b6..69fd5eb5 100644 --- a/control/src/main/kotlin/spp/probe/util/NopInternalLogger.kt +++ b/control/src/main/kotlin/spp/probe/util/NopInternalLogger.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.util import io.netty.util.internal.logging.InternalLogLevel diff --git a/control/src/main/kotlin/spp/probe/util/NopLogDelegateFactory.kt b/control/src/main/kotlin/spp/probe/util/NopLogDelegateFactory.kt index 258f6863..3488cb90 100644 --- a/control/src/main/kotlin/spp/probe/util/NopLogDelegateFactory.kt +++ b/control/src/main/kotlin/spp/probe/util/NopLogDelegateFactory.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.util import io.vertx.core.spi.logging.LogDelegate diff --git a/control/src/test/kotlin/integration/LiveBreakpointTest.kt b/control/src/test/kotlin/integration/LiveBreakpointTest.kt index 630fd1d2..4aa9c350 100644 --- a/control/src/test/kotlin/integration/LiveBreakpointTest.kt +++ b/control/src/test/kotlin/integration/LiveBreakpointTest.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package integration import io.vertx.core.Promise diff --git a/control/src/test/kotlin/integration/LiveLogTest.kt b/control/src/test/kotlin/integration/LiveLogTest.kt index 223d8ecf..b6d5cb9d 100644 --- a/control/src/test/kotlin/integration/LiveLogTest.kt +++ b/control/src/test/kotlin/integration/LiveLogTest.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package integration import io.vertx.core.Promise diff --git a/control/src/test/kotlin/integration/ProbeIntegrationTest.kt b/control/src/test/kotlin/integration/ProbeIntegrationTest.kt index 9606581e..2d7997c8 100644 --- a/control/src/test/kotlin/integration/ProbeIntegrationTest.kt +++ b/control/src/test/kotlin/integration/ProbeIntegrationTest.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package integration import io.vertx.core.Vertx diff --git a/services/src/main/java/spp/probe/services/common/ContextMap.kt b/services/src/main/java/spp/probe/services/common/ContextMap.kt index 6fb4c74b..ac58b182 100644 --- a/services/src/main/java/spp/probe/services/common/ContextMap.kt +++ b/services/src/main/java/spp/probe/services/common/ContextMap.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.common class ContextMap { diff --git a/services/src/main/java/spp/probe/services/common/ContextReceiver.kt b/services/src/main/java/spp/probe/services/common/ContextReceiver.kt index 12cfc720..1fdd126d 100644 --- a/services/src/main/java/spp/probe/services/common/ContextReceiver.kt +++ b/services/src/main/java/spp/probe/services/common/ContextReceiver.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.common import org.apache.skywalking.apm.agent.core.boot.ServiceManager diff --git a/services/src/main/java/spp/probe/services/common/ModelSerializer.kt b/services/src/main/java/spp/probe/services/common/ModelSerializer.kt index ed6bef7d..f8cce860 100644 --- a/services/src/main/java/spp/probe/services/common/ModelSerializer.kt +++ b/services/src/main/java/spp/probe/services/common/ModelSerializer.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.common import com.google.gson.Gson diff --git a/services/src/main/java/spp/probe/services/common/ProbeMemory.kt b/services/src/main/java/spp/probe/services/common/ProbeMemory.kt index 22d91320..e9146513 100644 --- a/services/src/main/java/spp/probe/services/common/ProbeMemory.kt +++ b/services/src/main/java/spp/probe/services/common/ProbeMemory.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.common import java.util.concurrent.ConcurrentHashMap diff --git a/services/src/main/java/spp/probe/services/common/model/ActiveLiveInstrument.kt b/services/src/main/java/spp/probe/services/common/model/ActiveLiveInstrument.kt index 21a28055..0224755c 100644 --- a/services/src/main/java/spp/probe/services/common/model/ActiveLiveInstrument.kt +++ b/services/src/main/java/spp/probe/services/common/model/ActiveLiveInstrument.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.common.model import org.springframework.expression.Expression diff --git a/services/src/main/java/spp/probe/services/common/model/ClassField.kt b/services/src/main/java/spp/probe/services/common/model/ClassField.kt index 1b60f581..2b35e47c 100644 --- a/services/src/main/java/spp/probe/services/common/model/ClassField.kt +++ b/services/src/main/java/spp/probe/services/common/model/ClassField.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.common.model import java.io.Serializable diff --git a/services/src/main/java/spp/probe/services/common/model/ClassMetadata.kt b/services/src/main/java/spp/probe/services/common/model/ClassMetadata.kt index 8a1ab992..721e265e 100644 --- a/services/src/main/java/spp/probe/services/common/model/ClassMetadata.kt +++ b/services/src/main/java/spp/probe/services/common/model/ClassMetadata.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.common.model import net.bytebuddy.jar.asm.Opcodes diff --git a/services/src/main/java/spp/probe/services/common/model/LocalVariable.kt b/services/src/main/java/spp/probe/services/common/model/LocalVariable.kt index c995c6f6..52e00e20 100644 --- a/services/src/main/java/spp/probe/services/common/model/LocalVariable.kt +++ b/services/src/main/java/spp/probe/services/common/model/LocalVariable.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.common.model import java.io.Serializable diff --git a/services/src/main/java/spp/probe/services/common/serialize/RuntimeClassIdentityTypeAdapterFactory.kt b/services/src/main/java/spp/probe/services/common/serialize/RuntimeClassIdentityTypeAdapterFactory.kt index c9fc34b9..d06c6717 100644 --- a/services/src/main/java/spp/probe/services/common/serialize/RuntimeClassIdentityTypeAdapterFactory.kt +++ b/services/src/main/java/spp/probe/services/common/serialize/RuntimeClassIdentityTypeAdapterFactory.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.common.serialize import com.google.gson.* diff --git a/services/src/main/java/spp/probe/services/common/serialize/RuntimeClassNameTypeAdapterFactory.kt b/services/src/main/java/spp/probe/services/common/serialize/RuntimeClassNameTypeAdapterFactory.kt index 06296d64..2759442b 100644 --- a/services/src/main/java/spp/probe/services/common/serialize/RuntimeClassNameTypeAdapterFactory.kt +++ b/services/src/main/java/spp/probe/services/common/serialize/RuntimeClassNameTypeAdapterFactory.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.common.serialize import com.google.gson.* diff --git a/services/src/main/java/spp/probe/services/common/serialize/SizeCappedTypeAdapterFactory.kt b/services/src/main/java/spp/probe/services/common/serialize/SizeCappedTypeAdapterFactory.kt index 6c6d4f85..d04a5df1 100644 --- a/services/src/main/java/spp/probe/services/common/serialize/SizeCappedTypeAdapterFactory.kt +++ b/services/src/main/java/spp/probe/services/common/serialize/SizeCappedTypeAdapterFactory.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.common.serialize import com.google.gson.Gson diff --git a/services/src/main/java/spp/probe/services/common/transform/LiveClassVisitor.kt b/services/src/main/java/spp/probe/services/common/transform/LiveClassVisitor.kt index 4b52b8e2..9a9724c8 100644 --- a/services/src/main/java/spp/probe/services/common/transform/LiveClassVisitor.kt +++ b/services/src/main/java/spp/probe/services/common/transform/LiveClassVisitor.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.common.transform import net.bytebuddy.jar.asm.ClassVisitor diff --git a/services/src/main/java/spp/probe/services/common/transform/LiveTransformer.kt b/services/src/main/java/spp/probe/services/common/transform/LiveTransformer.kt index b438da7f..6622f25d 100644 --- a/services/src/main/java/spp/probe/services/common/transform/LiveTransformer.kt +++ b/services/src/main/java/spp/probe/services/common/transform/LiveTransformer.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.common.transform import net.bytebuddy.jar.asm.* diff --git a/services/src/main/java/spp/probe/services/common/transform/MetadataCollector.kt b/services/src/main/java/spp/probe/services/common/transform/MetadataCollector.kt index 8a879947..2b61f34a 100644 --- a/services/src/main/java/spp/probe/services/common/transform/MetadataCollector.kt +++ b/services/src/main/java/spp/probe/services/common/transform/MetadataCollector.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.common.transform import net.bytebuddy.jar.asm.* diff --git a/services/src/main/java/spp/probe/services/error/LiveInstrumentException.kt b/services/src/main/java/spp/probe/services/error/LiveInstrumentException.kt index 0118ff12..16b133e8 100644 --- a/services/src/main/java/spp/probe/services/error/LiveInstrumentException.kt +++ b/services/src/main/java/spp/probe/services/error/LiveInstrumentException.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.error class LiveInstrumentException( diff --git a/services/src/main/java/spp/probe/services/instrument/LiveInstrumentApplier.kt b/services/src/main/java/spp/probe/services/instrument/LiveInstrumentApplier.kt index 1a94977b..365c2c53 100644 --- a/services/src/main/java/spp/probe/services/instrument/LiveInstrumentApplier.kt +++ b/services/src/main/java/spp/probe/services/instrument/LiveInstrumentApplier.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.instrument import java.lang.instrument.Instrumentation diff --git a/services/src/main/java/spp/probe/services/instrument/LiveInstrumentService.kt b/services/src/main/java/spp/probe/services/instrument/LiveInstrumentService.kt index 702825c8..2434e22d 100644 --- a/services/src/main/java/spp/probe/services/instrument/LiveInstrumentService.kt +++ b/services/src/main/java/spp/probe/services/instrument/LiveInstrumentService.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.instrument import net.bytebuddy.pool.TypePool diff --git a/services/src/main/java/spp/probe/services/instrument/LiveInstrumentTransformer.kt b/services/src/main/java/spp/probe/services/instrument/LiveInstrumentTransformer.kt index cc8d9712..7b57e0c7 100644 --- a/services/src/main/java/spp/probe/services/instrument/LiveInstrumentTransformer.kt +++ b/services/src/main/java/spp/probe/services/instrument/LiveInstrumentTransformer.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.instrument import net.bytebuddy.jar.asm.Label diff --git a/services/src/test/kotlin/spp/probe/services/common/model/HitThrottleTest.kt b/services/src/test/kotlin/spp/probe/services/common/model/HitThrottleTest.kt index 2e821e45..1af68cb5 100644 --- a/services/src/test/kotlin/spp/probe/services/common/model/HitThrottleTest.kt +++ b/services/src/test/kotlin/spp/probe/services/common/model/HitThrottleTest.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.common.model import junit.framework.TestCase diff --git a/services/src/test/kotlin/spp/probe/services/instrument/ProbeInstrumentTest.kt b/services/src/test/kotlin/spp/probe/services/instrument/ProbeInstrumentTest.kt index ad527a41..6b3b1c89 100644 --- a/services/src/test/kotlin/spp/probe/services/instrument/ProbeInstrumentTest.kt +++ b/services/src/test/kotlin/spp/probe/services/instrument/ProbeInstrumentTest.kt @@ -1,3 +1,20 @@ +/* + * Source++, the open-source live coding platform. + * Copyright (C) 2022 CodeBrig, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ package spp.probe.services.instrument import org.junit.Assert.assertEquals diff --git a/settings.gradle b/settings.gradle index 29b6470a..858812b4 100644 --- a/settings.gradle +++ b/settings.gradle @@ -5,6 +5,7 @@ pluginManagement { id 'com.avast.gradle.docker-compose' version "0.15.0" apply false id 'io.gitlab.arturbosch.detekt' version "1.19.0" apply false id 'com.github.johnrengelman.shadow' version "7.1.2" apply false + id 'com.diffplug.spotless' version '6.2.0' apply false } }