aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src/main/groovy
diff options
context:
space:
mode:
Diffstat (limited to 'buildSrc/src/main/groovy')
-rw-r--r--buildSrc/src/main/groovy/net/minecraftforge/artifactural/buildscript/SoftwareComponentFactoryGrabber.groovy35
1 files changed, 35 insertions, 0 deletions
diff --git a/buildSrc/src/main/groovy/net/minecraftforge/artifactural/buildscript/SoftwareComponentFactoryGrabber.groovy b/buildSrc/src/main/groovy/net/minecraftforge/artifactural/buildscript/SoftwareComponentFactoryGrabber.groovy
new file mode 100644
index 0000000..ef6d4e0
--- /dev/null
+++ b/buildSrc/src/main/groovy/net/minecraftforge/artifactural/buildscript/SoftwareComponentFactoryGrabber.groovy
@@ -0,0 +1,35 @@
+/*
+ * Artifactural
+ * Copyright (c) 2018-2021.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation version 2.1
+ * of the License.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package net.minecraftforge.artifactural.buildscript
+
+import groovy.transform.CompileStatic
+import org.gradle.api.component.SoftwareComponentFactory
+
+import javax.inject.Inject
+
+@CompileStatic
+class SoftwareComponentFactoryGrabber {
+ final SoftwareComponentFactory softwareComponentFactory
+
+ @Inject
+ SoftwareComponentFactoryGrabber(SoftwareComponentFactory softwareComponentFactory) {
+ this.softwareComponentFactory = softwareComponentFactory
+ }
+}