<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Alium</id>
	<title>Kolmafia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Alium"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Special:Contributions/Alium"/>
	<updated>2026-04-30T19:26:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=IntelliJ_Setup&amp;diff=9148</id>
		<title>IntelliJ Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=IntelliJ_Setup&amp;diff=9148"/>
		<updated>2022-02-18T03:04:12Z</updated>

		<summary type="html">&lt;p&gt;Alium: Added steps to confirm gradle runShadow and how to build/run/debug&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==== KoLmafia has migrated to the GitHub repository and we are retooling for GIT and gradle builds. ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://www.jetbrains.com/idea/ IntelliJ IDEA] is an IDE for developing Java applications. This guide assumes that you have a recent enough version of Java JDK, Ant, and IntelliJ IDEA. Completing [[Compiling from Source]] is a requirement for this guide, although experienced developers can skip to whatever step is appropriate.&lt;br /&gt;
&lt;br /&gt;
The following instructions are based on IntelliJ IDEA 2021.2 Community Edition. Instructions for other versions/editions of IntelliJ may be slightly different.&lt;br /&gt;
&lt;br /&gt;
== Create a Project ==&lt;br /&gt;
=== Create a new project ===&lt;br /&gt;
# Start IntelliJ IDEA. In the &#039;&#039;Welcome to IntelliJ IDEA&#039;&#039; dialog, click &#039;&#039;&#039;Get from VCS&#039;&#039;&#039;.&amp;lt;br&amp;gt;[[File:Intellij-setup-c2021.2-welcome.png|300px]]&lt;br /&gt;
# In the &#039;&#039;Get from Version Control&#039;&#039; dialog, select the &#039;&#039;&#039;Repository URL&#039;&#039;&#039; tab.&lt;br /&gt;
## In &#039;&#039;Version control&#039;&#039;, select &#039;&#039;&#039;GitHub&#039;&#039;&#039;.&amp;lt;br&amp;gt;[[File:Intellij-setup-c2021.2-get-from-vcs.png|300px]]&lt;br /&gt;
## Add a new repository location. To do so, click the &#039;&#039;&#039;+&#039;&#039;&#039; button next to &#039;&#039;Repositories&#039;&#039;.&amp;lt;br&amp;gt;[[File:Intellij-setup-c2021.2-get-from-vcs-subversion.png|300px]]&lt;br /&gt;
## In the &#039;&#039;New Repository Location&#039;&#039; popup, enter the URL to KoLmafia&#039;s GitHub repository. If you have a GitHub account and a Personal Access Token, use   git@github.com:kolmafia/kolmafia.git  If you do not have a GitHub account, use  https://github.com/kolmafia/kolmafia.git&amp;lt;br&amp;gt;[[File:Intellij-setup-c2021.2-new-repository-location.png|200px]]&lt;br /&gt;
## Click &#039;&#039;&#039;OK&#039;&#039;&#039; to close the popup.&lt;br /&gt;
## Once the repository has been added, &#039;&#039;&#039;click the repository URL to highlight it&#039;&#039;&#039;, then click &#039;&#039;&#039;Check Out&#039;&#039;&#039;.&amp;lt;br&amp;gt;[[File:Intellij-setup-c2021.2-get-from-vcs-check-out.png|300px]]&lt;br /&gt;
# If the &#039;&#039;Destination Directory&#039;&#039; popup appears, choose a directory to check out the working copy.&amp;lt;br&amp;gt;&#039;&#039;Caution&#039;&#039;: Don&#039;t choose a common directory like &amp;lt;samp&amp;gt;C:\Users\&amp;amp;lt;username&amp;amp;gt;\Documents&amp;lt;/samp&amp;gt;. Instead, create a new directory under it (by clicking the folder icon) and give it an appropriate name (e.g. &amp;lt;samp&amp;gt;kolmafia&amp;lt;/samp&amp;gt;).&amp;lt;br&amp;gt;[[File:Intellij-setup-c2021.2-choose-working-copy-dir.png|200px]]&amp;lt;br&amp;gt;Click &#039;&#039;&#039;OK&#039;&#039;&#039; to continue.&lt;br /&gt;
# IntelliJ will generate a new project. If it asks you whether to add &amp;lt;code&amp;gt;kolmafia.iml&amp;lt;/code&amp;gt; to Subversion, you may click &#039;&#039;&#039;Cancel&#039;&#039;&#039; to skip it&lt;br /&gt;
&lt;br /&gt;
=== Add the Gradle Build File ===&lt;br /&gt;
# Open the Gradle Toolbar Item (typically on the right side, and not very large)&lt;br /&gt;
# Click the &#039;&#039;&#039;+&#039;&#039;&#039; button to add a build file&lt;br /&gt;
# Choose build.gradle from the file selector and press Open&lt;br /&gt;
#Run Configurations should contain &amp;lt;code&amp;gt;kolmafia [runShadow]&amp;lt;/code&amp;gt;. If it does not, continue to the next steps.&lt;br /&gt;
#In the Gradle Toolbar click on the elephant to Execute Gradle Task&lt;br /&gt;
#A window titled &#039;&#039;Run Anything&#039;&#039; will popup. Search for &amp;lt;code&amp;gt;runShadow&amp;lt;/code&amp;gt; and select it&lt;br /&gt;
&lt;br /&gt;
===How to build and run/debug===&lt;br /&gt;
#Click the drop down in the top right and select the desired option&lt;br /&gt;
##&amp;lt;code&amp;gt;kolmafia [runShadow]&amp;lt;/code&amp;gt; is the application itself&lt;br /&gt;
##&amp;lt;code&amp;gt;Tests in &#039;KoLMafia&#039;&amp;lt;/code&amp;gt; are the unit tests&lt;br /&gt;
#Click the play button to build and run&lt;br /&gt;
#Or click the bug button to build and debug&lt;/div&gt;</summary>
		<author><name>Alium</name></author>
	</entry>
</feed>