Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Remove variables as task input
Browse files Browse the repository at this point in the history
  • Loading branch information
ayltai committed Jul 8, 2020
1 parent 7fd6722 commit e675b78
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group 'com.github.ayltai'
version '0.2.7'
version '0.2.8'

sourceCompatibility = 8
targetCompatibility = 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,6 @@ public ListProperty<String> getTargets() {
return this.targets;
}

@Nonnull
@Optional
@Input
public NamedDomainObjectContainer<Variables> getVariables() {
return this.variables;
}

//endregion

@Nonnull
Expand Down
11 changes: 0 additions & 11 deletions src/main/java/com/github/ayltai/gradle/plugin/Variables.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package com.github.ayltai.gradle.plugin;

import java.io.File;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nonnull;
Expand All @@ -26,12 +23,4 @@ public <T> void var(@Nonnull final String name, @Nullable final T value) {
public void file(@Nonnull final File file) {
this.files.add(file);
}

private static void writeObject(@Nonnull final ObjectOutputStream outputStream) throws IOException {
outputStream.defaultWriteObject();
}

private static void readObject(@Nonnull final ObjectInputStream inputStream) throws IOException, ClassNotFoundException {
inputStream.defaultReadObject();
}
}

0 comments on commit e675b78

Please sign in to comment.