This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String notString(String str) { | |
// If the arg starts with not... (https://howtodoinjava.com/java/string/java-string-startswith-example/) | |
if (str.startsWith("not")) { | |
return str; | |
// Otherwise... | |
} else { | |
return "not " + str; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void buildLocations() { | |
for (LocationFactory factory : factories) { | |
Method[] methods = factory.getClass().getMethods(); | |
for (Method method : methods) { | |
try { | |
method.invoke(null); | |
} catch (Exception e) { | |
MessageQueue.add(e.getStackTrace().toString()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id("maven-publish") | |
} | |
publishing { | |
repositories { | |
maven { | |
name = "GitHubPackages" | |
url = uri("https://maven.pkg.github.com/OWNER/REPOSITORY") | |
credentials { |
OlderNewer